| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function __invoke(callable $getState, callable $dispatch): callable |
||
| 26 | { |
||
| 27 | $this->getStateFunction = $getState; |
||
| 28 | $this->dispatchFunction = $dispatch; |
||
| 29 | |||
| 30 | return function(callable $next) { |
||
| 31 | return function(ActionInterface $action) use ($next) { |
||
| 32 | return $this->handleAction($action, $next); |
||
| 33 | }; |
||
| 60 | } |