Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 1 | public function receive(array $dtoData) |
|
33 | { |
||
34 | 1 | $context = $this->getManager()->getContextManager()->rebuild( |
|
35 | 1 | $dtoData, |
|
36 | 1 | $this->getManager()->getContextManager()->getHydrator() |
|
37 | 1 | ); |
|
38 | |||
39 | 1 | $explode = explode('.', $context->getName()); |
|
40 | 1 | $action = end($explode); |
|
41 | 1 | $service = $this->getManager()->getServiceFactory()->build($context); |
|
42 | |||
43 | 1 | return $service->$action($context); |
|
44 | } |
||
45 | |||
55 |