public function canHandle(Token $token) { return $token->getValue() == 'double'; }
/** * {@inheritDoc} */ public function canHandle(Token $token) { return $token->getType() == Token::TAG && $token->getValue() == $this->getTagValue(); }
/** * @param Token $token */ public function __construct(Token $token) { parent::__construct(sprintf('Unknown tag: %s', $token->getValue())); $this->token = $token; }
/** * {@inheritDoc} */ public function canHandle(Token $token) { return $token->getType() == Token::TAG && $token->getValue() == '{'; }