Conditions | 4 |
Paths | 8 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
62 | public function getProperties(): array |
||
63 | { |
||
64 | $properties = []; |
||
65 | |||
66 | // URL must precede all other properties |
||
67 | if ($this->url !== null) { |
||
68 | $properties[] = new Property(Property::AUDIO_URL, $this->url); |
||
69 | } |
||
70 | |||
71 | if ($this->secureUrl !== null) { |
||
72 | $properties[] = new Property(Property::AUDIO_SECURE_URL, $this->secureUrl); |
||
73 | } |
||
74 | |||
75 | if ($this->type !== null) { |
||
76 | $properties[] = new Property(Property::AUDIO_TYPE, $this->type); |
||
77 | } |
||
78 | |||
79 | return $properties; |
||
80 | } |
||
82 |