src/Parser/FormatToken.php
public function isOne($symbols)
    {
        if ($this->type !== self::TYPE_SYMBOL) {
            return false;
        }

        if (!is_array($symbols)) {
            $symbols = func_get_args();
        }

        return in_array($this->value, $symbols);
    }
public function isOne($symbols)
    {
        if ($this->type !== self::TYPE_SYMBOL) {
            return false;
        }

        if (!is_array($symbols)) {
            $symbols = func_get_args();
        }

        return in_array($this->value, $symbols);
    }
public function isOne ( $ symbols ) { if ( $ this -> type !== self :: TYPE_SYMBOL ) { return false ; } if ( ! is_array ( $ symbols ) ) { $ symbols = func_get_args ( ) ; } return in_array ( $ this -> value , $ symbols ) ; }
Checks if token is a TYPE_SYMBOL matching one of the arguments,
or one of the symbol contained in the first argument if it is an array

@param array|string $symbols
@param string       ...$symbols

@return boolean
Checks if token is a TYPE_SYMBOL matching one of the arguments or one of the symbol contained in the first argument if it is an array