Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988564
TextTrackKind.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
TextTrackKind.php
View Options
<?php
// AUTOMATICALLY GENERATED. DO NOT EDIT.
// Use `composer build` to regenerate.
namespace
Wikimedia\IDLeDOM
;
/**
* TextTrackKind
*
* @see https://dom.spec.whatwg.org/#enumdef-texttrackkind
*
* @phan-forbid-undeclared-magic-properties
*/
final
class
TextTrackKind
{
/* Enumeration values */
public
const
subtitles
=
'subtitles'
;
public
const
captions
=
'captions'
;
public
const
descriptions
=
'descriptions'
;
public
const
chapters
=
'chapters'
;
public
const
metadata
=
'metadata'
;
private
function
__construct
()
{
/* Enumerations can't be instantiated */
}
// @phan-file-suppress PhanTypeInvalidThrowsIsInterface
/**
* Throw a TypeError if the provided string is not a
* valid member of this enumeration.
*
* @param string $value The string to test
* @return string The provided string, if it is valid
* @throws \Wikimedia\IDLeDOM\TypeError if it is not valid
*/
public
static
function
cast
(
string
$value
):
string
{
switch
(
$value
)
{
case
'subtitles'
:
case
'captions'
:
case
'descriptions'
:
case
'chapters'
:
case
'metadata'
:
return
$value
;
default
:
throw
new
class
()
extends
\Exception
implements
\Wikimedia\IDLeDOM\TypeError
{
};
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:50 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
22/96/2ee45dcbcb3dc143f920a7d08903
Default Alt Text
TextTrackKind.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment