| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0932 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 96 | final public function modifySchema(array &$schema): void |
|
| 42 | { |
||
| 43 | // todo: compare with default constructor values |
||
| 44 | 96 | $args = $this->getListenerArgs(); |
|
| 45 | 96 | if ($args === []) { |
|
| 46 | $schema[SchemaInterface::LISTENERS][] = $this->getListenerClass(); |
||
| 47 | return; |
||
| 48 | } |
||
| 49 | 96 | $schema[SchemaInterface::LISTENERS][] = [ |
|
| 50 | 96 | ListenerProvider::DEFINITION_CLASS => $this->getListenerClass(), |
|
| 51 | ListenerProvider::DEFINITION_ARGS => $args, |
||
| 52 | ]; |
||
| 55 |