Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 1 | public static function create($definition): self |
|
22 | { |
||
23 | 1 | return new self(vsprintf('Argument $definition must be either %s, %s or %s, %s given', [ |
|
24 | 1 | DefinitionInterface::class, |
|
25 | Closure::class, |
||
26 | 1 | 'string', |
|
27 | 1 | is_object($definition) ? get_class($definition) : gettype($definition) |
|
28 | ])); |
||
29 | } |
||
30 | } |
||
31 |