| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function __construct($type, array $props, array $attributes = array()) { |
||
| 23 | if ($type & Class_::MODIFIER_ABSTRACT) { |
||
| 24 | throw new Error('Properties cannot be declared abstract'); |
||
| 25 | } |
||
| 26 | |||
| 27 | if ($type & Class_::MODIFIER_FINAL) { |
||
| 28 | throw new Error('Properties cannot be declared final'); |
||
| 29 | } |
||
| 30 | |||
| 31 | parent::__construct($attributes); |
||
| 32 | $this->type = $type; |
||
| 33 | $this->props = $props; |
||
| 34 | } |
||
| 35 | |||
| 57 |