PhpParser\Node::getType PHP Method

getType() public method

Gets the type of the node.
public getType ( ) : string
return string Type of the node
    public function getType();

Usage Example

示例#1
0
 public function pushState($stateKey, Node $node)
 {
     if ($this->debug) {
         printf("Stacking %s %s %s %d\n", $stateKey, $node->getType(), $node->name, count($this->stateStack));
     }
     $state = $this->getState($stateKey);
     array_unshift($this->stateStack, ['node' => $node, 'state' => $state, 'key' => $state->getName(), 'nodeType' => $node->getType()]);
 }
All Usage Examples Of PhpParser\Node::getType