Conditions | 4 |
Paths | 8 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
48 | public function getProperties() |
||
49 | { |
||
50 | $properties = []; |
||
51 | |||
52 | // URL must precede all other properties |
||
53 | if ($this->url !== null) { |
||
54 | $properties[] = new Property(Property::AUDIO_URL, $this->url); |
||
55 | } |
||
56 | |||
57 | if ($this->secureUrl !== null) { |
||
58 | $properties[] = new Property(Property::AUDIO_SECURE_URL, $this->secureUrl); |
||
59 | } |
||
60 | |||
61 | if ($this->type !== null) { |
||
62 | $properties[] = new Property(Property::AUDIO_TYPE, $this->type); |
||
63 | } |
||
64 | |||
65 | return $properties; |
||
66 | } |
||
67 | } |
||
68 |