X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/nikic/php-parser/lib/PhpParser/Builder
opt
/
cpanel
/
ea-wappspector
/
vendor
/
nikic
/
php-parser
/
lib
/
PhpParser
/
Builder
/
??
..
??
ClassConst.php
(3.78 KB)
??
Class_.php
(4.07 KB)
??
Declaration.php
(1.23 KB)
??
EnumCase.php
(1.96 KB)
??
Enum_.php
(3.18 KB)
??
FunctionLike.php
(1.76 KB)
??
Function_.php
(1.65 KB)
??
Interface_.php
(2.57 KB)
??
Method.php
(3.67 KB)
??
Namespace_.php
(1.05 KB)
??
Param.php
(4.36 KB)
??
Property.php
(5.61 KB)
??
TraitUse.php
(1.62 KB)
??
TraitUseAdaptation.php
(4.17 KB)
??
Trait_.php
(2.3 KB)
??
Use_.php
(1.25 KB)
Editing: FunctionLike.php
<?php declare(strict_types=1); namespace PhpParser\Builder; use PhpParser\BuilderHelpers; use PhpParser\Node; abstract class FunctionLike extends Declaration { protected bool $returnByRef = false; /** @var Node\Param[] */ protected array $params = []; /** @var Node\Identifier|Node\Name|Node\ComplexType|null */ protected ?Node $returnType = null; /** * Make the function return by reference. * * @return $this The builder instance (for fluid interface) */ public function makeReturnByRef() { $this->returnByRef = true; return $this; } /** * Adds a parameter. * * @param Node\Param|Param $param The parameter to add * * @return $this The builder instance (for fluid interface) */ public function addParam($param) { $param = BuilderHelpers::normalizeNode($param); if (!$param instanceof Node\Param) { throw new \LogicException(sprintf('Expected parameter node, got "%s"', $param->getType())); } $this->params[] = $param; return $this; } /** * Adds multiple parameters. * * @param (Node\Param|Param)[] $params The parameters to add * * @return $this The builder instance (for fluid interface) */ public function addParams(array $params) { foreach ($params as $param) { $this->addParam($param); } return $this; } /** * Sets the return type for PHP 7. * * @param string|Node\Name|Node\Identifier|Node\ComplexType $type * * @return $this The builder instance (for fluid interface) */ public function setReturnType($type) { $this->returnType = BuilderHelpers::normalizeType($type); return $this; } }
Upload File
Create Folder