annotate vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php @ 2:92f882872392

Trusted hosts, + remove migration modules
author Chris Cannam
date Tue, 05 Dec 2017 09:26:43 +0000
parents 4c8ae668cc8c
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;
Chris@0 6
Chris@0 7 class Catch_ extends Node\Stmt
Chris@0 8 {
Chris@0 9 /** @var Node\Name[] Types of exceptions to catch */
Chris@0 10 public $types;
Chris@0 11 /** @var string Variable for exception */
Chris@0 12 public $var;
Chris@0 13 /** @var Node[] Statements */
Chris@0 14 public $stmts;
Chris@0 15
Chris@0 16 /**
Chris@0 17 * Constructs a catch node.
Chris@0 18 *
Chris@0 19 * @param Node\Name[] $types Types of exceptions to catch
Chris@0 20 * @param string $var Variable for exception
Chris@0 21 * @param Node[] $stmts Statements
Chris@0 22 * @param array $attributes Additional attributes
Chris@0 23 */
Chris@0 24 public function __construct(array $types, $var, array $stmts = array(), array $attributes = array()) {
Chris@0 25 parent::__construct($attributes);
Chris@0 26 $this->types = $types;
Chris@0 27 $this->var = $var;
Chris@0 28 $this->stmts = $stmts;
Chris@0 29 }
Chris@0 30
Chris@0 31 public function getSubNodeNames() {
Chris@0 32 return array('types', 'var', 'stmts');
Chris@0 33 }
Chris@0 34 }