private function updateAce($property, $index, $mask, $strategy = null)
    {
        $aces = &$this->$property;
        if (!isset($aces[$index])) {
            throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
        }

        $ace = $aces[$index];
        if ($mask !== $oldMask = $ace->getMask()) {
            $this->onEntryPropertyChanged($ace, 'mask', $oldMask, $mask);
            $ace->setMask($mask);
        }
        if (null !== $strategy && $strategy !== $oldStrategy = $ace->getStrategy()) {
            $this->onEntryPropertyChanged($ace, 'strategy', $oldStrategy, $strategy);
            $ace->setStrategy($strategy);
        }
    }
private function updateAce($property, $index, $mask, $strategy = null)
    {
        $aces = &$this->$property;
        if (!isset($aces[$index])) {
            throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
        }

        $ace = $aces[$index];
        if ($mask !== $oldMask = $ace->getMask()) {
            $this->onEntryPropertyChanged($ace, 'mask', $oldMask, $mask);
            $ace->setMask($mask);
        }
        if (null !== $strategy && $strategy !== $oldStrategy = $ace->getStrategy()) {
            $this->onEntryPropertyChanged($ace, 'strategy', $oldStrategy, $strategy);
            $ace->setStrategy($strategy);
        }
    }
private function updateAce ( $ property , $ index , $ mask , $ strategy = null ) { $ aces = & $ this -> $ property ; if ( ! isset ( $ aces [ $ index ] ) ) { throw new \ OutOfBoundsException ( sprintf ( 'The index "%d" does not exist.' , $ index ) ) ; } $ ace = $ aces [ $ index ] ; if ( $ mask !== $ oldMask = $ ace -> getMask ( ) ) { $ this -> onEntryPropertyChanged ( $ ace , 'mask' , $ oldMask , $ mask ) ; $ ace -> setMask ( $ mask ) ; } if ( null !== $ strategy && $ strategy !== $ oldStrategy = $ ace -> getStrategy ( ) ) { $ this -> onEntryPropertyChanged ( $ ace , 'strategy' , $ oldStrategy , $ strategy ) ; $ ace -> setStrategy ( $ strategy ) ; } }
Updates an ACE.

@param string $property
@param int    $index
@param int    $mask
@param string $strategy

@throws \OutOfBoundsException
Updates an ACE .