Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class AbstractRules implements RulesInterface |
||
15 | { |
||
16 | /** @var PathInterface */ |
||
17 | protected PathInterface $templatePath; |
||
18 | |||
19 | /** @var PathInterface */ |
||
20 | protected PathInterface $compiledPath; |
||
21 | |||
22 | /** @var CompilerInterface */ |
||
23 | protected CompilerInterface $compiler; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public function getCompiler(): CompilerInterface |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function setCompiler(CompilerInterface $compiler): RulesInterface |
||
37 | { |
||
38 | $this->compiler = $compiler; |
||
39 | |||
40 | return $this; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function setTemplatePath(PathInterface $templatePath): RulesInterface |
||
47 | { |
||
48 | $this->templatePath = $templatePath; |
||
49 | |||
50 | return $this; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | public function setCompiledPath(PathInterface $compiledPath): RulesInterface |
||
61 | } |
||
62 | } |
||
63 |