| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 93 | private static function getValidator(): CollectionValidationInterface |
|
| 20 | { |
||
| 21 | 93 | if (self::$cachedValidator === null || (self::$cachedValidator instanceof CollectionValidationInterface) === false) |
|
| 22 | { |
||
| 23 | 1 | self::$cachedValidator = new CollectionValidator(); |
|
| 24 | } |
||
| 25 | |||
| 26 | 93 | return self::$cachedValidator; |
|
| 27 | } |
||
| 48 | } |