Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace PhpParser\Node\Stmt; | |
4 | |
5 use PhpParser\Node; | |
6 | |
7 class Catch_ extends Node\Stmt | |
8 { | |
9 /** @var Node\Name[] Types of exceptions to catch */ | |
10 public $types; | |
11 /** @var string Variable for exception */ | |
12 public $var; | |
13 /** @var Node[] Statements */ | |
14 public $stmts; | |
15 | |
16 /** | |
17 * Constructs a catch node. | |
18 * | |
19 * @param Node\Name[] $types Types of exceptions to catch | |
20 * @param string $var Variable for exception | |
21 * @param Node[] $stmts Statements | |
22 * @param array $attributes Additional attributes | |
23 */ | |
24 public function __construct(array $types, $var, array $stmts = array(), array $attributes = array()) { | |
25 parent::__construct($attributes); | |
26 $this->types = $types; | |
27 $this->var = $var; | |
28 $this->stmts = $stmts; | |
29 } | |
30 | |
31 public function getSubNodeNames() { | |
32 return array('types', 'var', 'stmts'); | |
33 } | |
34 } |