| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function __construct(array $attributes = []) |
||
| 31 | { |
||
| 32 | if (!isset($attributes['class'])) { |
||
| 33 | throw new BadMethodCallException('In annotation @ExtendType, missing compulsory parameter "class".'); |
||
| 34 | } |
||
| 35 | $this->class = $attributes['class']; |
||
| 36 | if (!class_exists($this->class)) { |
||
| 37 | throw ClassNotFoundException::couldNotFindClass($this->class); |
||
| 38 | } |
||
| 52 |