PHP 8.2.31
Preview: Param.php Size: 2.11 KB
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/nikic/php-parser/lib/PhpParser/Node/Param.php

<?php

declare (strict_types=1);
namespace PhpParser\Node;

use PhpParser\NodeAbstract;
class Param extends NodeAbstract
{
    /** @var null|Identifier|Name|ComplexType Type declaration */
    public $type;
    /** @var bool Whether parameter is passed by reference */
    public $byRef;
    /** @var bool Whether this is a variadic argument */
    public $variadic;
    /** @var Expr\Variable|Expr\Error Parameter variable */
    public $var;
    /** @var null|Expr Default value */
    public $default;
    /** @var int */
    public $flags;
    /** @var AttributeGroup[] PHP attribute groups */
    public $attrGroups;
    /**
     * Constructs a parameter node.
     *
     * @param Expr\Variable|Expr\Error                $var        Parameter variable
     * @param null|Expr                               $default    Default value
     * @param null|string|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                                   $attributes Additional attributes
     * @param int                                     $flags      Optional visibility flags
     * @param AttributeGroup[]                        $attrGroups PHP attribute groups
     */
    public function __construct($var, ?\PhpParser\Node\Expr $default = null, $type = null, bool $byRef = \false, bool $variadic = \false, array $attributes = [], int $flags = 0, array $attrGroups = [])
    {
        $this->attributes = $attributes;
        $this->type = \is_string($type) ? new \PhpParser\Node\Identifier($type) : $type;
        $this->byRef = $byRef;
        $this->variadic = $variadic;
        $this->var = $var;
        $this->default = $default;
        $this->flags = $flags;
        $this->attrGroups = $attrGroups;
    }
    public function getSubNodeNames() : array
    {
        return ['attrGroups', 'flags', 'type', 'byRef', 'variadic', 'var', 'default'];
    }
    public function getType() : string
    {
        return 'Param';
    }
}

Directory Contents

Dirs: 4 × Files: 18

Name Size Perms Modified Actions
Expr DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Name DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Scalar DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Stmt DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
1.31 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
832 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
657 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
323 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1012 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
133 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
749 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.72 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
719 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
662 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
7.77 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
751 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.11 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
115 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
133 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
703 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
650 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
524 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).