Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 0 |
1 | <?php |
||
12 | abstract class BaseModifier implements SchemaModifierInterface |
||
13 | { |
||
14 | protected string $role; |
||
15 | |||
16 | public function compute(Registry $registry): void {} |
||
17 | |||
18 | public function render(Registry $registry): void {} |
||
19 | |||
20 | final public function withRole(string $role): static |
||
25 | } |
||
26 | |||
27 | final public function modifySchema(array &$schema): void |
||
38 | 112 | ]; |
|
39 | } |
||
40 | |||
41 | 96 | /** |
|
42 | * @return class-string |
||
|
|||
43 | */ |
||
44 | 96 | abstract protected function getListenerClass(): string; |
|
45 | 96 | ||
46 | /** |
||
47 | * @return array<string, mixed> |
||
48 | */ |
||
49 | 96 | abstract protected function getListenerArgs(): array; |
|
50 | } |
||
51 |