public function endsWith($type)
	{
		if(empty($this->tokens))
		{
			return false;
		}
		
		return $this->tokens[count($this->tokens) - 1]->is($type);
	}
public function endsWith($type)
	{
		if(empty($this->tokens))
		{
			return false;
		}
		
		return $this->tokens[count($this->tokens) - 1]->is($type);
	}
public function endsWith ( $ type ) { if ( empty ( $ this -> tokens ) ) { return false ; } return $ this -> tokens [ count ( $ this -> tokens ) - 1 ] -> is ( $ type ) ; }
Check if the sequence ends with a token of the given token type.

@param integer $type
@return boolean
Check if the sequence ends with a token of the given token type .