| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
| 18 | { |
||
| 19 | $hydrator = $container->get('ReflectionHydrator'); |
||
| 20 | |||
| 21 | $hydrator->addStrategy('lineItems', $container->get(InvoiceItemsStrategy::class)); |
||
| 22 | $hydrator->addStrategy('line_items', $container->get(InvoiceItemsStrategy::class)); |
||
| 23 | $hydrator->addStrategy('contacts', $container->get(ContactsStrategy::class)); |
||
| 24 | $hydrator->addStrategy('invitations', $container->get(InvitationsStrategy::class)); |
||
| 25 | |||
| 26 | return $hydrator; |
||
| 27 | } |
||
| 29 |