| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | final public function modifySchema(array &$schema): void |
||
| 28 | { |
||
| 29 | // todo: compare with default constructor values |
||
| 30 | $args = $this->getListenerArgs(); |
||
| 31 | if ($args === []) { |
||
| 32 | $schema[SchemaInterface::LISTENERS][] = $this->getListenerClass(); |
||
| 33 | return; |
||
| 34 | 112 | } |
|
| 35 | $schema[SchemaInterface::LISTENERS][] = [ |
||
| 36 | 112 | ListenerProvider::DEFINITION_CLASS => $this->getListenerClass(), |
|
| 37 | 112 | ListenerProvider::DEFINITION_ARGS => $args, |
|
| 38 | 112 | ]; |
|
| 51 |