Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | // AUTOMATICALLY GENERATED. DO NOT EDIT. |
4 | // Use `composer build` to regenerate. |
5 | |
6 | namespace Wikimedia\IDLeDOM; |
7 | |
8 | /** |
9 | * VideoTrackList |
10 | * |
11 | * @see https://dom.spec.whatwg.org/#interface-videotracklist |
12 | * |
13 | * @property int $length |
14 | * @property int $selectedIndex |
15 | * @property EventHandlerNonNull|callable|null $onchange |
16 | * @property EventHandlerNonNull|callable|null $onaddtrack |
17 | * @property EventHandlerNonNull|callable|null $onremovetrack |
18 | * @phan-forbid-undeclared-magic-properties |
19 | */ |
20 | interface VideoTrackList extends EventTarget, \ArrayAccess { |
21 | // Direct parent: EventTarget |
22 | |
23 | /** |
24 | * @return int |
25 | */ |
26 | public function getLength(): int; |
27 | |
28 | /** |
29 | * @param int $index |
30 | * @return VideoTrack |
31 | */ |
32 | public function item( int $index ); |
33 | |
34 | /** |
35 | * @param string $id |
36 | * @return VideoTrack|null |
37 | */ |
38 | public function getTrackById( string $id ); |
39 | |
40 | /** |
41 | * @return int |
42 | */ |
43 | public function getSelectedIndex(): int; |
44 | |
45 | /** |
46 | * @return EventHandlerNonNull|callable|null |
47 | */ |
48 | public function getOnchange(); |
49 | |
50 | /** |
51 | * @param EventHandlerNonNull|callable|null $val |
52 | */ |
53 | public function setOnchange( /* ?mixed */ $val ): void; |
54 | |
55 | /** |
56 | * @return EventHandlerNonNull|callable|null |
57 | */ |
58 | public function getOnaddtrack(); |
59 | |
60 | /** |
61 | * @param EventHandlerNonNull|callable|null $val |
62 | */ |
63 | public function setOnaddtrack( /* ?mixed */ $val ): void; |
64 | |
65 | /** |
66 | * @return EventHandlerNonNull|callable|null |
67 | */ |
68 | public function getOnremovetrack(); |
69 | |
70 | /** |
71 | * @param EventHandlerNonNull|callable|null $val |
72 | */ |
73 | public function setOnremovetrack( /* ?mixed */ $val ): void; |
74 | |
75 | } |