src/Rule.php
public function match(Subject $subject, string $verb): bool
    {
        return $this->subject->getType() == $subject->getType() &&
            $this->subject->getId() === $subject->getId() &&
            ($this->verbs === null || in_array($verb, $this->verbs, true));
    }
public function match(Subject $subject, string $verb): bool
    {
        return $this->subject->getType() == $subject->getType() &&
            $this->subject->getId() === $subject->getId() &&
            ($this->verbs === null || in_array($verb, $this->verbs, true));
    }
public function match ( Subject $ subject , string $ verb ) : bool { return $ this -> subject -> getType ( ) == $ subject -> getType ( ) && $ this -> subject -> getId ( ) === $ subject -> getId ( ) && ( $ this -> verbs === null || in_array ( $ verb , $ this -> verbs , true ) ) ; }
Gets whether this Rule matches the `Subject` and verb provided.

@param \Caridea\Acl\Subject $subject The subject to check
@param string $verb The verb to check
@return bool Whether this Rule matches the arguments provided
Gets whether this Rule matches the Subject and verb provided .