private function updateAuditing(array &$aces, $index, $auditSuccess, $auditFailure)
    {
        if (!isset($aces[$index])) {
            throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
        }

        if ($auditSuccess !== $aces[$index]->isAuditSuccess()) {
            $this->onEntryPropertyChanged($aces[$index], 'auditSuccess', !$auditSuccess, $auditSuccess);
            $aces[$index]->setAuditSuccess($auditSuccess);
        }

        if ($auditFailure !== $aces[$index]->isAuditFailure()) {
            $this->onEntryPropertyChanged($aces[$index], 'auditFailure', !$auditFailure, $auditFailure);
            $aces[$index]->setAuditFailure($auditFailure);
        }
    }
private function updateAuditing(array &$aces, $index, $auditSuccess, $auditFailure)
    {
        if (!isset($aces[$index])) {
            throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
        }

        if ($auditSuccess !== $aces[$index]->isAuditSuccess()) {
            $this->onEntryPropertyChanged($aces[$index], 'auditSuccess', !$auditSuccess, $auditSuccess);
            $aces[$index]->setAuditSuccess($auditSuccess);
        }

        if ($auditFailure !== $aces[$index]->isAuditFailure()) {
            $this->onEntryPropertyChanged($aces[$index], 'auditFailure', !$auditFailure, $auditFailure);
            $aces[$index]->setAuditFailure($auditFailure);
        }
    }
private function updateAuditing ( array & $ aces , $ index , $ auditSuccess , $ auditFailure ) { if ( ! isset ( $ aces [ $ index ] ) ) { throw new \ OutOfBoundsException ( sprintf ( 'The index "%d" does not exist.' , $ index ) ) ; } if ( $ auditSuccess !== $ aces [ $ index ] -> isAuditSuccess ( ) ) { $ this -> onEntryPropertyChanged ( $ aces [ $ index ] , 'auditSuccess' , ! $ auditSuccess , $ auditSuccess ) ; $ aces [ $ index ] -> setAuditSuccess ( $ auditSuccess ) ; } if ( $ auditFailure !== $ aces [ $ index ] -> isAuditFailure ( ) ) { $ this -> onEntryPropertyChanged ( $ aces [ $ index ] , 'auditFailure' , ! $ auditFailure , $ auditFailure ) ; $ aces [ $ index ] -> setAuditFailure ( $ auditFailure ) ; } }
Updates auditing for an ACE.

@param array &$aces
@param int   $index
@param bool  $auditSuccess
@param bool  $auditFailure

@throws \OutOfBoundsException
Updates auditing for an ACE .