| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | private function __construct(string $class) |
||
| 21 | { |
||
| 22 | try { |
||
| 23 | parent::__construct($class); |
||
| 24 | } catch (ReflectionException $exception) { |
||
| 25 | throw NoSuchClass::encountered($exception); |
||
| 26 | } |
||
| 27 | if ($this->isAbstract()) { |
||
| 28 | throw NoConcreteClass::cannotInstantiate($class); |
||
| 29 | } |
||
| 30 | if ($this->isInterface()) { |
||
| 31 | throw NotAClass::cannotInstantiate($class); |
||
| 32 | } |
||
| 73 |