Total Complexity | 8 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Coverage | 55% |
Changes | 0 |
1 | <?php |
||
10 | class Audio extends ElementBase |
||
11 | { |
||
12 | /** |
||
13 | * The URL of an audio resource associated with the object. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | public $url; |
||
18 | |||
19 | /** |
||
20 | * An alternate URL to use if an audio resource requires HTTPS. |
||
21 | * |
||
22 | * @var null|string |
||
23 | */ |
||
24 | public $secureUrl; |
||
25 | |||
26 | /** |
||
27 | * The MIME type of an audio resource associated with the object. |
||
28 | * |
||
29 | * @var null|string |
||
30 | */ |
||
31 | public $type; |
||
32 | |||
33 | /** |
||
34 | * @param mixed $url URL to the audio file. |
||
35 | */ |
||
36 | 1 | public function __construct($url) |
|
37 | { |
||
38 | 1 | $this->url = (string)$url; |
|
39 | 1 | } |
|
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * @param mixed $value |
||
44 | */ |
||
45 | 1 | public function setAttribute(string $name, $value) |
|
54 | } |
||
55 | 1 | } |
|
56 | |||
57 | /** |
||
58 | * Gets all properties set on this element. |
||
59 | * |
||
60 | * @return Property[] |
||
61 | */ |
||
62 | public function getProperties(): array |
||
82 |