Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5958075
EndTagTk.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
958 B
Referenced Files
None
Subscribers
None
EndTagTk.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Tokens
;
use
Wikimedia\Parsoid\NodeData\DataMw
;
use
Wikimedia\Parsoid\NodeData\DataParsoid
;
/**
* Represents an HTML end tag token
*/
class
EndTagTk
extends
Token
{
/** @var string Name of the end tag */
private
$name
;
/**
* @param string $name
* @param KV[] $attribs
* @param ?DataParsoid $dataParsoid
* @param ?DataMw $dataMw
*/
public
function
__construct
(
string
$name
,
array
$attribs
=
[],
?
DataParsoid
$dataParsoid
=
null
,
?
DataMw
$dataMw
=
null
)
{
parent
::
__construct
(
$dataParsoid
,
$dataMw
);
$this
->
name
=
$name
;
$this
->
attribs
=
$attribs
;
}
public
function
getName
():
string
{
return
$this
->
name
;
}
/**
* @inheritDoc
*/
public
function
jsonSerialize
():
array
{
return
[
'type'
=>
$this
->
getType
(),
'name'
=>
$this
->
name
,
'attribs'
=>
$this
->
attribs
,
'dataParsoid'
=>
$this
->
dataParsoid
,
'dataMw'
=>
$this
->
dataMw
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 05:33 (2 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6a/77/356413e4696a4349fb96e9249f7f
Default Alt Text
EndTagTk.php (958 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment