| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 30 | 21 | public function getAsArray(): array |
|
| 31 | { |
||
| 32 | return [ |
||
| 33 | 21 | 'id' => $this->id, |
|
| 34 | 21 | 'type' => $this->type->getValue(), |
|
| 35 | 21 | 'information' => $this->information->getAsArray(), |
|
| 36 | 21 | 'ring' => $this->ring->getAsArray(), |
|
| 37 | 21 | 'sound' => $this->sound->getAsArray(), |
|
| 38 | ]; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |