src/Tokenizer/Token.php
public function equalsAny(array $others, $caseSensitive = true)
    {
        foreach ($others as $other) {
            if ($this->equals($other, $caseSensitive)) {
                return true;
            }
        }

        return false;
    }
public function equalsAny(array $others, $caseSensitive = true)
    {
        foreach ($others as $other) {
            if ($this->equals($other, $caseSensitive)) {
                return true;
            }
        }

        return false;
    }
Check if token is equals to one of given.

@param array $others        array of tokens or token prototypes
@param bool  $caseSensitive perform a case sensitive comparison

@return bool