public function isReferencePart(): bool
    {
        return
            $this->getType() == self::TYPE_ESCAPED ||
            $this->getType() == self::TYPE_UNESCAPED;
    }
public function isReferencePart(): bool
    {
        return
            $this->getType() == self::TYPE_ESCAPED ||
            $this->getType() == self::TYPE_UNESCAPED;
    }
public function isReferencePart ( ) : bool { return $ this -> getType ( ) == self :: TYPE_ESCAPED || $ this -> getType ( ) == self :: TYPE_UNESCAPED ; }
Checks if token is a part of reference.

@return bool
Checks if token is a part of reference .