Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
32 | public function generateCallable(array $arrayCallable = [], $entity, $changedProperties = null): array |
||
33 | { |
||
34 | $callable = []; |
||
35 | |||
36 | $callable[$this->generateCallableSignature($arrayCallable, $entity)] = [ |
||
37 | 'callable' => [ |
||
38 | $this->serviceLocator->get($arrayCallable['name']), |
||
39 | $arrayCallable['method'], |
||
40 | ], |
||
41 | 'parameters' => ['entity' => $entity, 'changedProperties' => $changedProperties], |
||
42 | 'flush' => $arrayCallable['flush'], |
||
43 | ]; |
||
44 | |||
45 | return $callable; |
||
46 | } |
||
61 |