Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6089189
NlTk.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
930 B
Referenced Files
None
Subscribers
None
NlTk.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Tokens
;
use
Wikimedia\Parsoid\NodeData\DataMw
;
use
Wikimedia\Parsoid\NodeData\DataParsoid
;
/**
* Newline token.
*/
class
NlTk
extends
Token
{
/**
* @param ?SourceRange $tsr
* TSR ("tag source range") represents the (start, end) wikitext
* byte offsets for a token (in this case, the newline) in the
* UTF8-encoded source string
* @param ?DataParsoid $dataParsoid
* @param ?DataMw $dataMw
*/
public
function
__construct
(
?
SourceRange
$tsr
,
?
DataParsoid
$dataParsoid
=
null
,
?
DataMw
$dataMw
=
null
)
{
parent
::
__construct
(
$dataParsoid
,
$dataMw
);
if
(
$dataParsoid
==
null
&&
$tsr
!==
null
)
{
$this
->
dataParsoid
->
tsr
=
$tsr
;
}
}
/**
* @inheritDoc
*/
public
function
jsonSerialize
():
array
{
return
[
'type'
=>
$this
->
getType
(),
'dataParsoid'
=>
$this
->
dataParsoid
,
'dataMw'
=>
$this
->
dataMw
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 17:53 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c9/63/8efa40782895064519e8fc47cabd
Default Alt Text
NlTk.php (930 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment