Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class GatewayBuilder extends AbstractBuilder |
||
15 | { |
||
16 | public function __construct(string $entity, array $actions) |
||
17 | { |
||
18 | $actions = \array_reduce($actions, function (array $result, string $action) { |
||
19 | $result[] = $this->getCamelCase($action); |
||
20 | |||
21 | return $result; |
||
22 | }, []); |
||
23 | |||
24 | parent::__construct(\compact('entity', 'actions')); |
||
25 | } |
||
26 | |||
27 | protected function getFileTemplate(): string |
||
28 | { |
||
29 | return 'Gateway.php.twig'; |
||
30 | } |
||
31 | |||
32 | protected function getPathTemplate(): string |
||
35 | } |
||
36 | } |
||
37 |