| 1 |
<?php |
| 2 |
|
| 3 |
// AUTOMATICALLY GENERATED. DO NOT EDIT. |
| 4 |
// Use `composer build` to regenerate. |
| 5 |
|
| 6 |
namespace Wikimedia\IDLeDOM\Stub; |
| 7 |
|
| 8 |
use Exception; |
| 9 |
use Wikimedia\IDLeDOM\EventHandlerNonNull; |
| 10 |
use Wikimedia\IDLeDOM\TextTrack; |
| 11 |
|
| 12 |
trait TextTrackList { |
| 13 |
|
| 14 |
// Underscore is used to avoid conflicts with DOM-reserved names |
| 15 |
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
| 16 |
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
| 17 |
|
| 18 |
/** |
| 19 |
* @return Exception |
| 20 |
*/ |
| 21 |
abstract protected function _unimplemented(): Exception; |
| 22 |
|
| 23 |
// phpcs:enable |
| 24 |
|
| 25 |
/** |
| 26 |
* @return int |
| 27 |
*/ |
| 28 |
public function getLength(): int { |
| 29 |
throw self::_unimplemented(); |
| 30 |
} |
| 31 |
|
| 32 |
/** |
| 33 |
* @param int $index |
| 34 |
* @return TextTrack |
| 35 |
*/ |
| 36 |
public function item( int $index ) { |
| 37 |
throw self::_unimplemented(); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* @param string $id |
| 42 |
* @return TextTrack|null |
| 43 |
*/ |
| 44 |
public function getTrackById( string $id ) { |
| 45 |
throw self::_unimplemented(); |
| 46 |
} |
| 47 |
|
| 48 |
/** |
| 49 |
* @return EventHandlerNonNull|callable|null |
| 50 |
*/ |
| 51 |
public function getOnchange() { |
| 52 |
throw self::_unimplemented(); |
| 53 |
} |
| 54 |
|
| 55 |
/** |
| 56 |
* @param EventHandlerNonNull|callable|null $val |
| 57 |
*/ |
| 58 |
public function setOnchange( /* ?mixed */ $val ): void { |
| 59 |
throw self::_unimplemented(); |
| 60 |
} |
| 61 |
|
| 62 |
/** |
| 63 |
* @return EventHandlerNonNull|callable|null |
| 64 |
*/ |
| 65 |
public function getOnaddtrack() { |
| 66 |
throw self::_unimplemented(); |
| 67 |
} |
| 68 |
|
| 69 |
/** |
| 70 |
* @param EventHandlerNonNull|callable|null $val |
| 71 |
*/ |
| 72 |
public function setOnaddtrack( /* ?mixed */ $val ): void { |
| 73 |
throw self::_unimplemented(); |
| 74 |
} |
| 75 |
|
| 76 |
/** |
| 77 |
* @return EventHandlerNonNull|callable|null |
| 78 |
*/ |
| 79 |
public function getOnremovetrack() { |
| 80 |
throw self::_unimplemented(); |
| 81 |
} |
| 82 |
|
| 83 |
/** |
| 84 |
* @param EventHandlerNonNull|callable|null $val |
| 85 |
*/ |
| 86 |
public function setOnremovetrack( /* ?mixed */ $val ): void { |
| 87 |
throw self::_unimplemented(); |
| 88 |
} |
| 89 |
|
| 90 |
} |