src/Manager/ComparisonManager.php
public function getResult(): array
    {
        $result =
            (count($this->rejectedAttributes) > 0)
            ? $this->rejectedAttributes
            : []
        ;
        $this->rejectedAttributes = [];
        return $result;
    }
public function getResult(): array
    {
        $result =
            (count($this->rejectedAttributes) > 0)
            ? $this->rejectedAttributes
            : []
        ;
        $this->rejectedAttributes = [];
        return $result;
    }
public function getResult ( ) : array { $ result = ( count ( $ this -> rejectedAttributes ) > 0 ) ? $ this -> rejectedAttributes : [ ] ; $ this -> rejectedAttributes = [ ] ; return $ result ; }
This method is called when all the policy rule attributes are checked
All along the comparisons, the failing attributes slugs are stored
If the rejected attributes array is not empty, it means that the rule is not enforced
This method is called when all the policy rule attributes are checked All along the comparisons the failing attributes slugs are stored If the rejected attributes array is not empty it means that the rule is not enforced