Webmozart\Expression\Selector\Key::equivalentTo PHP Method

equivalentTo() public method

public equivalentTo ( Webmozart\Expression\Expression $other )
$other Webmozart\Expression\Expression
    public function equivalentTo(Expression $other)
    {
        if (!parent::equivalentTo($other)) {
            return false;
        }
        /* @var static $other */
        return $this->key === $other->key;
    }