| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function __construct($name, Expr $default = null, $type = null, $byRef = false, $variadic = false, array $attributes = array()) { |
||
| 32 | parent::__construct($attributes); |
||
| 33 | $this->type = $type; |
||
| 34 | $this->byRef = $byRef; |
||
| 35 | $this->variadic = $variadic; |
||
| 36 | $this->name = $name; |
||
| 37 | $this->default = $default; |
||
| 38 | |||
| 39 | if ($variadic && null !== $default) { |
||
| 40 | throw new Error('Variadic parameter cannot have a default value', $default->getAttributes()); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | |||
| 48 |