| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function __construct(array $stmts, array $catches, array $finallyStmts = null, array $attributes = array()) { |
||
| 26 | if (empty($catches) && null === $finallyStmts) { |
||
| 27 | throw new Error('Cannot use try without catch or finally'); |
||
| 28 | } |
||
| 29 | |||
| 30 | parent::__construct($attributes); |
||
| 31 | $this->stmts = $stmts; |
||
| 32 | $this->catches = $catches; |
||
| 33 | $this->finallyStmts = $finallyStmts; |
||
| 34 | } |
||
| 35 | |||
| 40 |