Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class FkGetterBuilder extends AbstractBuilder |
||
15 | { |
||
16 | public function __construct(string $name, string $type) |
||
17 | { |
||
18 | $name = $this->getInflector()->camelProperty($name); |
||
19 | $getter = $this->getInflector()->camelProperty($name); |
||
20 | $type = $this->getInflector()->entity($type); |
||
21 | $typeName = $this->getInflector()->camelProperty($type); |
||
22 | |||
23 | parent::__construct(\compact('name', 'getter', 'type', 'typeName')); |
||
24 | } |
||
25 | |||
26 | protected function getFileTemplate(): string |
||
27 | { |
||
28 | return 'FkGetter.php.twig'; |
||
29 | } |
||
30 | |||
31 | protected function getPathTemplate(): string |
||
34 | } |
||
35 | } |
||
36 |