| Total Complexity | 1 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class SamplesCache |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array<string, Samples> |
||
| 12 | * Where _key_ is a rule statement and _value_ a {@see Samples}. |
||
| 13 | */ |
||
| 14 | private static array $instances = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param callable():Samples $new |
||
| 18 | */ |
||
| 19 | public static function get(string $samples, callable $new): Samples |
||
| 24 |