| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 3 | 
| CRAP Score | 1.2441 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 18 | public function addToContainer(Container $c): void  | 
            ||
| 19 |     { | 
            ||
| 20 | $personPackage = new PersonPackage();  | 
            ||
| 21 | $personPackage->addToContainer($c);  | 
            ||
| 22 | |||
| 23 | 26 |         $function = function (Container $c) { | 
            |
| 24 | 26 | $entityManager = $c->get(EntityManager::class);  | 
            |
| 25 | $personService = $c->get(PersonService::class);  | 
            ||
| 26 | 26 | ||
| 27 | return new UserService($entityManager, $personService);  | 
            ||
| 28 | };  | 
            ||
| 29 | |||
| 30 | $c[UserService::class] = $c->factory($function);  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 41 |