| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 9 | class RegistrationJsonEnricher implements JsonEnricher |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var UuidFactoryInterface |
||
| 13 | */ |
||
| 14 | private $uuidFactory; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param UuidFactoryInterface $uuidFactory |
||
| 18 | */ |
||
| 19 | public function __construct(UuidFactoryInterface $uuidFactory) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $json |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function enrich(string $json): string |
||
| 44 |
If the size of the collection does not change during the iteration, it is generally a good practice to compute it beforehand, and not on each iteration: