Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/lib/PhpParser/Node/Param.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
10 public $type; | 10 public $type; |
11 /** @var bool Whether parameter is passed by reference */ | 11 /** @var bool Whether parameter is passed by reference */ |
12 public $byRef; | 12 public $byRef; |
13 /** @var bool Whether this is a variadic argument */ | 13 /** @var bool Whether this is a variadic argument */ |
14 public $variadic; | 14 public $variadic; |
15 /** @var Expr\Variable Parameter variable */ | 15 /** @var Expr\Variable|Expr\Error Parameter variable */ |
16 public $var; | 16 public $var; |
17 /** @var null|Expr Default value */ | 17 /** @var null|Expr Default value */ |
18 public $default; | 18 public $default; |
19 | 19 |
20 /** | 20 /** |
21 * Constructs a parameter node. | 21 * Constructs a parameter node. |
22 * | 22 * |
23 * @param Expr\Variable $var Parameter variable | 23 * @param Expr\Variable|Expr\Error $var Parameter variable |
24 * @param null|Expr $default Default value | 24 * @param null|Expr $default Default value |
25 * @param null|string|Name|NullableType $type Typehint | 25 * @param null|string|Name|NullableType $type Typehint |
26 * @param bool $byRef Whether is passed by reference | 26 * @param bool $byRef Whether is passed by reference |
27 * @param bool $variadic Whether this is a variadic argument | 27 * @param bool $variadic Whether this is a variadic argument |
28 * @param array $attributes Additional attributes | 28 * @param array $attributes Additional attributes |
29 */ | 29 */ |
30 public function __construct( | 30 public function __construct( |
31 Expr\Variable $var, Expr $default = null, $type = null, | 31 $var, Expr $default = null, $type = null, |
32 bool $byRef = false, bool $variadic = false, array $attributes = [] | 32 bool $byRef = false, bool $variadic = false, array $attributes = [] |
33 ) { | 33 ) { |
34 parent::__construct($attributes); | 34 parent::__construct($attributes); |
35 $this->type = \is_string($type) ? new Identifier($type) : $type; | 35 $this->type = \is_string($type) ? new Identifier($type) : $type; |
36 $this->byRef = $byRef; | 36 $this->byRef = $byRef; |