annotate vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 5fb285c0d0e3
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace PhpParser\Node\Stmt;
Chris@0 4
Chris@0 5 use PhpParser\Node\Stmt;
Chris@0 6
Chris@0 7 class Goto_ extends Stmt
Chris@0 8 {
Chris@0 9 /** @var string Name of label to jump to */
Chris@0 10 public $name;
Chris@0 11
Chris@0 12 /**
Chris@0 13 * Constructs a goto node.
Chris@0 14 *
Chris@0 15 * @param string $name Name of label to jump to
Chris@0 16 * @param array $attributes Additional attributes
Chris@0 17 */
Chris@0 18 public function __construct($name, array $attributes = array()) {
Chris@0 19 parent::__construct($attributes);
Chris@0 20 $this->name = $name;
Chris@0 21 }
Chris@0 22
Chris@0 23 public function getSubNodeNames() {
Chris@0 24 return array('name');
Chris@0 25 }
Chris@0 26 }