Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | final class RuleBuilder extends AbstractBuilder |
||
16 | 7 | { |
|
17 | 7 | public function __construct(SchemaAttributeInterface $property) |
|
18 | { |
||
19 | 7 | $name = $this->getInflector()->camelProperty($property->name()); |
|
20 | |||
21 | 7 | parent::__construct(\compact('name', 'property')); |
|
22 | } |
||
23 | |||
24 | 7 | public function build(): string |
|
25 | { |
||
26 | 7 | return \rtrim(parent::build()); |
|
27 | } |
||
28 | |||
29 | 7 | protected function getFileTemplate(): string |
|
32 | } |
||
33 | |||
34 | protected function getPathTemplate(): string |
||
37 | } |
||
38 | } |
||
39 |