| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 1 | public static function create($definition): self |
|
| 30 | { |
||
| 31 | 1 | return new self(vsprintf('Argument $definition must be either %s, %s or %s, %s given', [ |
|
| 32 | 1 | DefinitionInterface::class, |
|
| 33 | Closure::class, |
||
| 34 | 1 | 'string', |
|
| 35 | 1 | is_object($definition) ? get_class($definition) : gettype($definition) |
|
| 36 | ])); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |