Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5949310
TagTk.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
TagTk.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Tokens
;
use
Wikimedia\Parsoid\NodeData\DataMw
;
use
Wikimedia\Parsoid\NodeData\DataParsoid
;
/**
* HTML tag token
*/
class
TagTk
extends
Token
{
/** @var string Name of the end tag */
private
$name
;
/**
* @param string $name
* @param KV[] $attribs
* @param ?DataParsoid $dataParsoid data-parsoid object
* @param ?DataMw $dataMw data-mw object
*/
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
Oct 2 2026, 22:55 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
71/94/b62039222b449b892acc8c7b4459
Default Alt Text
TagTk.php (974 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment