| 1 |
<?php |
| 2 |
|
| 3 |
// AUTOMATICALLY GENERATED. DO NOT EDIT. |
| 4 |
// Use `composer build` to regenerate. |
| 5 |
|
| 6 |
namespace Wikimedia\IDLeDOM; |
| 7 |
|
| 8 |
/** |
| 9 |
* TextTrack |
| 10 |
* |
| 11 |
* @see https://dom.spec.whatwg.org/#interface-texttrack |
| 12 |
* |
| 13 |
* @property string $kind |
| 14 |
* @property string $label |
| 15 |
* @property string $language |
| 16 |
* @property string $id |
| 17 |
* @property string $inBandMetadataTrackDispatchType |
| 18 |
* @property TextTrackCueList|null $cues |
| 19 |
* @property TextTrackCueList|null $activeCues |
| 20 |
* @property EventHandlerNonNull|callable|null $oncuechange |
| 21 |
* @phan-forbid-undeclared-magic-properties |
| 22 |
*/ |
| 23 |
interface TextTrack extends EventTarget { |
| 24 |
// Direct parent: EventTarget |
| 25 |
|
| 26 |
/** |
| 27 |
* @return string |
| 28 |
*/ |
| 29 |
public function getKind(): /* TextTrackKind */ string; |
| 30 |
|
| 31 |
/** |
| 32 |
* @return string |
| 33 |
*/ |
| 34 |
public function getLabel(): string; |
| 35 |
|
| 36 |
/** |
| 37 |
* @return string |
| 38 |
*/ |
| 39 |
public function getLanguage(): string; |
| 40 |
|
| 41 |
/** |
| 42 |
* @return string |
| 43 |
*/ |
| 44 |
public function getId(): string; |
| 45 |
|
| 46 |
/** |
| 47 |
* @return string |
| 48 |
*/ |
| 49 |
public function getInBandMetadataTrackDispatchType(): string; |
| 50 |
|
| 51 |
/** |
| 52 |
* @return TextTrackCueList|null |
| 53 |
*/ |
| 54 |
public function getCues(); |
| 55 |
|
| 56 |
/** |
| 57 |
* @return TextTrackCueList|null |
| 58 |
*/ |
| 59 |
public function getActiveCues(); |
| 60 |
|
| 61 |
/** |
| 62 |
* @param TextTrackCue $cue |
| 63 |
* @return void |
| 64 |
*/ |
| 65 |
public function addCue( /* TextTrackCue */ $cue ): void; |
| 66 |
|
| 67 |
/** |
| 68 |
* @param TextTrackCue $cue |
| 69 |
* @return void |
| 70 |
*/ |
| 71 |
public function removeCue( /* TextTrackCue */ $cue ): void; |
| 72 |
|
| 73 |
/** |
| 74 |
* @return EventHandlerNonNull|callable|null |
| 75 |
*/ |
| 76 |
public function getOncuechange(); |
| 77 |
|
| 78 |
/** |
| 79 |
* @param EventHandlerNonNull|callable|null $val |
| 80 |
*/ |
| 81 |
public function setOncuechange( /* ?mixed */ $val ): void; |
| 82 |
|
| 83 |
} |