/opt/cpanel/ea-wappspector/vendor/nikic/php-parser/lib/PhpParser/Node
NameSizeModeActions
Expr/-0755rm
Name/-0755rm
Scalar/-0755rm
Stmt/-0755rm
Arg.php12990644editdlrm
ArrayItem.php12120644editdlrm
Attribute.php8200644editdlrm
AttributeGroup.php6470644editdlrm
ClosureUse.php9730644editdlrm
ComplexType.php3230644editdlrm
Const_.php9710644editdlrm
DeclareItem.php9920644editdlrm
Expr.php1330644editdlrm
FunctionLike.php7310644editdlrm
Identifier.php21170644editdlrm
InterpolatedStringPart.php8500644editdlrm
IntersectionType.php6650644editdlrm
MatchArm.php6520644editdlrm
Name.php86710644editdlrm
NullableType.php6790644editdlrm
Param.php37870644editdlrm
PropertyHook.php34310644editdlrm
PropertyItem.php10720644editdlrm
Scalar.php980644editdlrm
StaticVar.php9990644editdlrm
Stmt.php1330644editdlrm
UnionType.php6770644editdlrm
UseItem.php16770644editdlrm
VariadicPlaceholder.php6530644editdlrm
VarLikeIdentifier.php5020644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/nikic/php-parser/lib/PhpParser/Node/PropertyHook.php (3431B)
0 : Flags * 'byRef' => false : Whether hook returns by reference * 'params' => array(): Parameters * 'attrGroups' => array(): PHP attribute groups * @param array $attributes Additional attributes */ public function __construct($name, $body, array $subNodes = [], array $attributes = []) { $this->attributes = $attributes; $this->name = \is_string($name) ? new Identifier($name) : $name; $this->body = $body; $this->flags = $subNodes['flags'] ?? 0; $this->byRef = $subNodes['byRef'] ?? false; $this->params = $subNodes['params'] ?? []; $this->attrGroups = $subNodes['attrGroups'] ?? []; } public function returnsByRef(): bool { return $this->byRef; } public function getParams(): array { return $this->params; } public function getReturnType() { return null; } /** * Whether the property hook is final. */ public function isFinal(): bool { return (bool) ($this->flags & Modifiers::FINAL); } public function getStmts(): ?array { if ($this->body instanceof Expr) { $name = $this->name->toLowerString(); if ($name === 'get') { return [new Return_($this->body)]; } if ($name === 'set') { if (!$this->hasAttribute('propertyName')) { throw new \LogicException( 'Can only use getStmts() on a "set" hook if the "propertyName" attribute is set'); } $propName = $this->getAttribute('propertyName'); $prop = new PropertyFetch(new Variable('this'), (string) $propName); return [new Expression(new Assign($prop, $this->body))]; } throw new \LogicException('Unknown property hook "' . $name . '"'); } return $this->body; } public function getAttrGroups(): array { return $this->attrGroups; } public function getType(): string { return 'PropertyHook'; } public function getSubNodeNames(): array { return ['attrGroups', 'flags', 'byRef', 'name', 'params', 'body']; } }