Пример #1
0
 public function canHandle(Token $token)
 {
     return $token->getValue() == 'double';
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function canHandle(Token $token)
 {
     return $token->getType() == Token::TAG && $token->getValue() == $this->getTagValue();
 }
Пример #3
0
 /**
  * @param Token $token
  */
 public function __construct(Token $token)
 {
     parent::__construct(sprintf('Unknown tag: %s', $token->getValue()));
     $this->token = $token;
 }
Пример #4
0
 /**
  * {@inheritDoc}
  */
 public function canHandle(Token $token)
 {
     return $token->getType() == Token::TAG && $token->getValue() == '{';
 }