BookStack\Entity::matches PHP Method

matches() public method

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