Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | private function addRandomStringValue(Container $container): void |
||
41 | { |
||
42 | $container->set( |
||
43 | self::RANDOM_STRING_VALUE, |
||
44 | $container->factory(static function (Container $container) { |
||
45 | /** @var string $cached */ |
||
46 | $cached = $container->get(self::CACHED_SEED); |
||
47 | |||
48 | /** @var string $random */ |
||
49 | $random = $container->get(self::RANDOM_SEED); |
||
50 | |||
51 | return new StringValue($cached . $random); |
||
52 | }) |
||
56 |