Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7442937
TokenHandlerResult.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
TokenHandlerResult.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Wt2Html\TT
;
class
TokenHandlerResult
{
/** @var array|null */
public
$tokens
;
/** @var bool */
public
$skipOnAny
;
/**
* @param array|null $tokens The new array of tokens, or null to retain the
* current token
* @param bool $skipOnAny Don't call this handler's onAny() method for this token
*/
public
function
__construct
(
?
array
$tokens
=
null
,
$skipOnAny
=
false
)
{
if
(
$tokens
)
{
foreach
(
$tokens
as
$token
)
{
if
(
$token
===
null
)
{
throw
new
\InvalidArgumentException
(
"Invalid token"
);
}
}
}
$this
->
tokens
=
$tokens
;
$this
->
skipOnAny
=
$skipOnAny
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 16:49 (15 h, 50 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c3/2e/194dad011cc847e2b4d77d66d4e0
Default Alt Text
TokenHandlerResult.php (675 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment