Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4041211
AFPSyntaxTree.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
587 B
Referenced Files
None
Subscribers
None
AFPSyntaxTree.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\Parser
;
/**
* A class representing a whole AST generated by AFPTreeParser, holding AFPTreeNode's. This wrapper
* could be expanded in the future. For now, it's mostly useful for typehints, and to have an
* evalTree function in the evaluator.
*/
class
AFPSyntaxTree
{
/**
* @var AFPTreeNode|null
*/
private
$rootNode
;
/**
* @param AFPTreeNode|null $root
*/
public
function
__construct
(
?
AFPTreeNode
$root
=
null
)
{
$this
->
rootNode
=
$root
;
}
public
function
getRoot
():
?
AFPTreeNode
{
return
$this
->
rootNode
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 15 2026, 06:17 (13 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
37/9a/bf5016fd6b65168af0aaa2e26d6c
Default Alt Text
AFPSyntaxTree.php (587 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment