Conditions | 3 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
41 | 39 | public function __construct(array $options = [], array $groups = null, mixed $payload = null) |
|
42 | { |
||
43 | 39 | parent::__construct($options, $groups, $payload); |
|
44 | |||
45 | 39 | if (!class_exists($this->type) && !interface_exists($this->type)) { |
|
46 | 1 | throw new \InvalidArgumentException(sprintf('Not found class or interface: %s', $this->type)); |
|
47 | } |
||
63 |