BookStack\Entity::matches PHP Méthode

matches() public méthode

Matches by comparing class and id.
public matches ( $entity ) : boolean
$entity
Résultat boolean
    public function matches($entity)
    {
        return [get_class($this), $this->id] === [get_class($entity), $entity->id];
    }