| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class BaseModifier implements SchemaModifierInterface |
||
| 13 | { |
||
| 14 | protected string $role; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return class-string |
||
|
|
|||
| 18 | */ |
||
| 19 | abstract protected function getListenerClass(): string; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array<string, mixed> |
||
| 23 | */ |
||
| 24 | abstract protected function getListenerArgs(): array; |
||
| 25 | |||
| 26 | public function compute(Registry $registry): void |
||
| 27 | { |
||
| 28 | } |
||
| 29 | |||
| 30 | public function render(Registry $registry): void |
||
| 31 | { |
||
| 32 | } |
||
| 33 | |||
| 34 | 112 | final public function withRole(string $role): static |
|
| 39 | } |
||
| 40 | |||
| 41 | 96 | final public function modifySchema(array &$schema): void |
|
| 55 |