private function evaluateGuard(EventInterface $event)
    {
        foreach ((array) $this->guardEvaluators as $guardEvaluator) {
            $result = call_user_func([$guardEvaluator, 'evaluate'], $event, $this->getPayload(), $this);
            if (!$result) {
                return false;
            }
        }

        return true;
    }
private function evaluateGuard(EventInterface $event)
    {
        foreach ((array) $this->guardEvaluators as $guardEvaluator) {
            $result = call_user_func([$guardEvaluator, 'evaluate'], $event, $this->getPayload(), $this);
            if (!$result) {
                return false;
            }
        }

        return true;
    }
private function evaluateGuard ( EventInterface $ event ) { foreach ( ( array ) $ this -> guardEvaluators as $ guardEvaluator ) { $ result = call_user_func ( [ $ guardEvaluator , 'evaluate' ] , $ event , $ this -> getPayload ( ) , $ this ) ; if ( ! $ result ) { return false ; } } return true ; }
Evaluates the guard for the given event.

@param EventInterface $event

@return bool

@since Method available since Release 2.0.0
Evaluates the guard for the given event .