1 <?php declare(strict_types=1);
3 namespace PhpParser\Node\Stmt;
5 use PhpParser\Node\Identifier;
6 use PhpParser\Node\Stmt;
8 class Goto_ extends Stmt
10 /** @var Identifier Name of label to jump to */
14 * Constructs a goto node.
16 * @param string|Identifier $name Name of label to jump to
17 * @param array $attributes Additional attributes
19 public function __construct($name, array $attributes = []) {
20 parent::__construct($attributes);
21 $this->name = \is_string($name) ? new Identifier($name) : $name;
24 public function getSubNodeNames() : array {
28 public function getType() : string {