X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/nikic/php-parser/lib/PhpParser/Node
home
/
prisjneg
/
public_html
/
vendor
/
nikic
/
php-parser
/
lib
/
PhpParser
/
Node
/
📁
..
📄
Arg.php
(1.27 KB)
📄
ArrayItem.php
(1.18 KB)
📄
Attribute.php
(820 B)
📄
AttributeGroup.php
(647 B)
📄
ClosureUse.php
(973 B)
📄
ComplexType.php
(323 B)
📄
Const_.php
(971 B)
📄
DeclareItem.php
(992 B)
📁
Expr
📄
Expr.php
(133 B)
📄
FunctionLike.php
(731 B)
📄
Identifier.php
(2.07 KB)
📄
InterpolatedStringPart.php
(850 B)
📄
IntersectionType.php
(665 B)
📄
MatchArm.php
(652 B)
📁
Name
📄
Name.php
(8.47 KB)
📄
NullableType.php
(679 B)
📄
Param.php
(3.6 KB)
📄
PropertyHook.php
(3.35 KB)
📄
PropertyItem.php
(1.05 KB)
📁
Scalar
📄
Scalar.php
(98 B)
📄
StaticVar.php
(999 B)
📁
Stmt
📄
Stmt.php
(133 B)
📄
UnionType.php
(677 B)
📄
UseItem.php
(1.64 KB)
📄
VarLikeIdentifier.php
(502 B)
📄
VariadicPlaceholder.php
(653 B)
Editing: Param.php
<?php declare(strict_types=1); namespace PhpParser\Node; use PhpParser\Modifiers; use PhpParser\Node; use PhpParser\NodeAbstract; class Param extends NodeAbstract { /** @var null|Identifier|Name|ComplexType Type declaration */ public ?Node $type; /** @var bool Whether parameter is passed by reference */ public bool $byRef; /** @var bool Whether this is a variadic argument */ public bool $variadic; /** @var Expr\Variable|Expr\Error Parameter variable */ public Expr $var; /** @var null|Expr Default value */ public ?Expr $default; /** @var int Optional visibility flags */ public int $flags; /** @var AttributeGroup[] PHP attribute groups */ public array $attrGroups; /** @var PropertyHook[] Property hooks for promoted properties */ public array $hooks; /** * Constructs a parameter node. * * @param Expr\Variable|Expr\Error $var Parameter variable * @param null|Expr $default Default value * @param null|Identifier|Name|ComplexType $type Type declaration * @param bool $byRef Whether is passed by reference * @param bool $variadic Whether this is a variadic argument * @param array<string, mixed> $attributes Additional attributes * @param int $flags Optional visibility flags * @param list<AttributeGroup> $attrGroups PHP attribute groups * @param PropertyHook[] $hooks Property hooks for promoted properties */ public function __construct( Expr $var, ?Expr $default = null, ?Node $type = null, bool $byRef = false, bool $variadic = false, array $attributes = [], int $flags = 0, array $attrGroups = [], array $hooks = [] ) { $this->attributes = $attributes; $this->type = $type; $this->byRef = $byRef; $this->variadic = $variadic; $this->var = $var; $this->default = $default; $this->flags = $flags; $this->attrGroups = $attrGroups; $this->hooks = $hooks; } public function getSubNodeNames(): array { return ['attrGroups', 'flags', 'type', 'byRef', 'variadic', 'var', 'default', 'hooks']; } public function getType(): string { return 'Param'; } /** * Whether this parameter uses constructor property promotion. */ public function isPromoted(): bool { return $this->flags !== 0 || $this->hooks !== []; } public function isPublic(): bool { $public = (bool) ($this->flags & Modifiers::PUBLIC); if ($public) { return true; } if ($this->hooks === []) { return false; } return ($this->flags & Modifiers::VISIBILITY_MASK) === 0; } public function isProtected(): bool { return (bool) ($this->flags & Modifiers::PROTECTED); } public function isPrivate(): bool { return (bool) ($this->flags & Modifiers::PRIVATE); } public function isReadonly(): bool { return (bool) ($this->flags & Modifiers::READONLY); } /** * Whether the promoted property has explicit public(set) visibility. */ public function isPublicSet(): bool { return (bool) ($this->flags & Modifiers::PUBLIC_SET); } /** * Whether the promoted property has explicit protected(set) visibility. */ public function isProtectedSet(): bool { return (bool) ($this->flags & Modifiers::PROTECTED_SET); } /** * Whether the promoted property has explicit private(set) visibility. */ public function isPrivateSet(): bool { return (bool) ($this->flags & Modifiers::PRIVATE_SET); } }
Upload File
Create Folder