Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5953119
CommentTk.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
899 B
Referenced Files
None
Subscribers
None
CommentTk.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Tokens
;
use
Wikimedia\Parsoid\NodeData\DataMw
;
use
Wikimedia\Parsoid\NodeData\DataParsoid
;
/**
* Represents a comment
*/
class
CommentTk
extends
Token
{
/** @var string Comment text */
public
$value
;
public
function
__construct
(
string
$value
,
?
DataParsoid
$dataParsoid
=
null
,
?
DataMw
$dataMw
=
null
)
{
// $dataParsoid won't survive in the DOM, but still useful for token serialization
// FIXME: verify if this is still required given that html->wt doesn't
// use tokens anymore. That was circa 2012 serializer code.
parent
::
__construct
(
$dataParsoid
,
$dataMw
);
$this
->
value
=
$value
;
}
/**
* @inheritDoc
*/
public
function
jsonSerialize
():
array
{
return
[
'type'
=>
$this
->
getType
(),
'value'
=>
$this
->
value
,
'dataParsoid'
=>
$this
->
dataParsoid
,
'dataMw'
=>
$this
->
dataMw
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 3 2026, 01:56 (4 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
af/44/2c4b91ae8aaf92bcc384a7703a77
Default Alt Text
CommentTk.php (899 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment