public function isType($types)
    {
        if (!\is_array($types)) {
            $types = [$types];
        }

        return \in_array($this->getType(), $types, true);
    }
public function isType($types)
    {
        if (!\is_array($types)) {
            $types = [$types];
        }

        return \in_array($this->getType(), $types, true);
    }
Returns whether the token type is one of the given types.

@param int|int[] $types

@return bool