Exemple #1
0
 public function __construct(array $tokens, array $childNodes = [])
 {
     parent::__construct($tokens, $childNodes);
     $this->leftNode = $childNodes['left'];
     $this->rightNode = $childNodes['right'];
     $this->opToken = $tokens['op'];
 }
Exemple #2
0
 public function __construct(array $tokens, array $childNodes = [])
 {
     parent::__construct($tokens, $childNodes);
     $this->ifNode = $childNodes['if'];
     $this->ifBodyNode = $childNodes['ifBody'];
     $this->elseBodyNode = $childNodes['elseBody'];
 }
Exemple #3
0
 public function __construct(array $tokens, array $childNodes = [])
 {
     parent::__construct($tokens, $childNodes);
     if (isset($childNodes['key'])) {
         $this->keyNode = $childNodes['key'];
     }
     $this->valueNode = $childNodes['value'];
 }
Exemple #4
0
 public function __construct(array $tokens, array $childNodes = [])
 {
     parent::__construct($tokens, $childNodes);
 }
Exemple #5
0
 public function __construct(Token $varToken)
 {
     parent::__construct(['var' => $varToken]);
 }
Exemple #6
0
 public function __construct(Token $constantToken)
 {
     parent::__construct(['constant' => $constantToken]);
 }
Exemple #7
0
 public function __construct(Token $phpToken)
 {
     parent::__construct(['php' => $phpToken]);
 }
Exemple #8
0
 public function __construct(AbstractNode $expressionNode = null, Token $textToken = null)
 {
     parent::__construct(['text' => $textToken], ['expression' => $expressionNode]);
 }
Exemple #9
0
 public function __construct($tagParser)
 {
     parent::__construct(['tag' => $tagParser->getTagToken()], $tagParser->getAttributes());
     $this->tagParser = $tagParser;
 }