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