Page MenuHomeWickedGov Phorge

AFPSyntaxTree.php
No OneTemporary

Size
626 B
Referenced Files
None
Subscribers
None

AFPSyntaxTree.php

<?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;
}
/**
* @return AFPTreeNode|null
*/
public function getRoot(): ?AFPTreeNode {
return $this->rootNode;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 18 2026, 12:38 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cc/07/9857a5216f2a13290bae88057ca3
Default Alt Text
AFPSyntaxTree.php (626 B)

Event Timeline