CronLingo\Parser::is PHP Method

is() protected method

Check if a token is of a type
protected is ( $token, $types ) : boolean
$token
$types
return boolean
    protected function is($token, $types)
    {
        if (!is_array($types)) {
            $types = array($types);
        }
        if (false !== $token) {
            return in_array($token['token'], $types);
        }
        return false;
    }