/var/www/vhosts/ihelp.ro/httpdocs/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt
NameSizeModeActions
TraitUseAdaptation/-0755rm
Break_.php6930644editdlrm
Case_.php8550644editdlrm
Catch_.php11290644editdlrm
ClassConst.php24490644editdlrm
ClassLike.php29380644editdlrm
ClassMethod.php47450644editdlrm
Class_.php44420644editdlrm
Const_.php6930644editdlrm
Continue_.php7080644editdlrm
DeclareDeclare.php8970644editdlrm
Declare_.php8810644editdlrm
Do_.php8130644editdlrm
Echo_.php6550644editdlrm
ElseIf_.php8200644editdlrm
Else_.php6580644editdlrm
EnumCase.php11700644editdlrm
Enum_.php15730644editdlrm
Expression.php7170644editdlrm
Finally_.php6660644editdlrm
Foreach_.php16250644editdlrm
For_.php13210644editdlrm
Function_.php25560644editdlrm
Global_.php6750644editdlrm
Goto_.php7550644editdlrm
GroupUse.php10050644editdlrm
HaltCompiler.php7540644editdlrm
If_.php13170644editdlrm
InlineHTML.php6490644editdlrm
Interface_.php12290644editdlrm
Label.php7170644editdlrm
Namespace_.php9390644editdlrm
Nop.php3010644editdlrm
Property.php25870644editdlrm
PropertyProperty.php9680644editdlrm
Return_.php6730644editdlrm
StaticVar.php9040644editdlrm
Static_.php6880644editdlrm
Switch_.php8000644editdlrm
Throw_.php6650644editdlrm
TraitUse.php8980644editdlrm
TraitUseAdaptation.php2660644editdlrm
Trait_.php10010644editdlrm
TryCatch.php10350644editdlrm
Unset_.php6670644editdlrm
UseUse.php16050644editdlrm
Use_.php13680644editdlrm
While_.php8160644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php (4442B)
0 : Flags * 'extends' => null : Name of extended class * 'implements' => array(): Names of implemented interfaces * 'stmts' => array(): Statements * 'attrGroups' => array(): PHP attribute groups * @param array $attributes Additional attributes */ public function __construct($name, array $subNodes = [], array $attributes = []) { $this->attributes = $attributes; $this->flags = $subNodes['flags'] ?? $subNodes['type'] ?? 0; $this->name = \is_string($name) ? new Node\Identifier($name) : $name; $this->extends = $subNodes['extends'] ?? null; $this->implements = $subNodes['implements'] ?? []; $this->stmts = $subNodes['stmts'] ?? []; $this->attrGroups = $subNodes['attrGroups'] ?? []; } public function getSubNodeNames() : array { return ['attrGroups', 'flags', 'name', 'extends', 'implements', 'stmts']; } /** * Whether the class is explicitly abstract. * * @return bool */ public function isAbstract() : bool { return (bool) ($this->flags & self::MODIFIER_ABSTRACT); } /** * Whether the class is final. * * @return bool */ public function isFinal() : bool { return (bool) ($this->flags & self::MODIFIER_FINAL); } public function isReadonly() : bool { return (bool) ($this->flags & self::MODIFIER_READONLY); } /** * Whether the class is anonymous. * * @return bool */ public function isAnonymous() : bool { return null === $this->name; } /** * @internal */ public static function verifyClassModifier($a, $b) { if ($a & self::MODIFIER_ABSTRACT && $b & self::MODIFIER_ABSTRACT) { throw new Error('Multiple abstract modifiers are not allowed'); } if ($a & self::MODIFIER_FINAL && $b & self::MODIFIER_FINAL) { throw new Error('Multiple final modifiers are not allowed'); } if ($a & self::MODIFIER_READONLY && $b & self::MODIFIER_READONLY) { throw new Error('Multiple readonly modifiers are not allowed'); } if ($a & 48 && $b & 48) { throw new Error('Cannot use the final modifier on an abstract class'); } } /** * @internal */ public static function verifyModifier($a, $b) { if ($a & self::VISIBILITY_MODIFIER_MASK && $b & self::VISIBILITY_MODIFIER_MASK) { throw new Error('Multiple access type modifiers are not allowed'); } if ($a & self::MODIFIER_ABSTRACT && $b & self::MODIFIER_ABSTRACT) { throw new Error('Multiple abstract modifiers are not allowed'); } if ($a & self::MODIFIER_STATIC && $b & self::MODIFIER_STATIC) { throw new Error('Multiple static modifiers are not allowed'); } if ($a & self::MODIFIER_FINAL && $b & self::MODIFIER_FINAL) { throw new Error('Multiple final modifiers are not allowed'); } if ($a & self::MODIFIER_READONLY && $b & self::MODIFIER_READONLY) { throw new Error('Multiple readonly modifiers are not allowed'); } if ($a & 48 && $b & 48) { throw new Error('Cannot use the final modifier on an abstract class member'); } } public function getType() : string { return 'Stmt_Class'; } }