| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 18 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 1 | 
| 1 | <?php | ||
| 46 | 2 | public function configure(RepositoryFactory $factory): RepositoryFactory | |
| 47 |     { | ||
| 48 | $this | ||
| 49 | 2 | ->repositories | |
| 50 | 2 | ->foreach(function( | |
| 51 | string $class, | ||
| 52 | RepositoryInterface $repository | ||
| 53 | ) use ( | ||
| 54 | 1 | $factory | |
| 55 |             ) { | ||
| 56 | 1 | $factory->register( | |
| 57 | 1 | $this->metadatas->get($class), | |
| 58 | $repository | ||
| 59 | ); | ||
| 60 | 2 | }); | |
| 61 | |||
| 62 | 2 | return $factory; | |
| 63 | } | ||
| 64 | } | ||
| 65 |