PluginProbe
Code Engine – PHP Snippets, AI Functions & Automation for WordPress / 0.5.1
Code Engine – PHP Snippets, AI Functions & Automation for WordPress v0.5.1
0.5.7 0.5.6 0.5.5 0.5.4 0.5.3 0.5.2 0.5.1 0.5.0 0.4.9 0.4.8 0.4.7 0.4.6 trunk 0.0.1 0.0.2 0.2.8 0.2.9 0.3.0 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 All 33 releases
code-engine / vendor / nikic / php-parser / lib / PhpParser / Node / Arg.php

Arg.php in Code Engine – PHP Snippets, AI Functions & Automation for WordPress 0.5.1, at vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php

45 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php declare(strict_types=1);
2
3 namespace PhpParser\Node;
4
5 use PhpParser\NodeAbstract;
6
7 class Arg extends NodeAbstract {
8 /** @var Identifier|null Parameter name (for named parameters) */
9 public ?Identifier $name;
10 /** @var Expr Value to pass */
11 public Expr $value;
12 /** @var bool Whether to pass by ref */
13 public bool $byRef;
14 /** @var bool Whether to unpack the argument */
15 public bool $unpack;
16
17 /**
18 * Constructs a function call argument node.
19 *
20 * @param Expr $value Value to pass
21 * @param bool $byRef Whether to pass by ref
22 * @param bool $unpack Whether to unpack the argument
23 * @param array<string, mixed> $attributes Additional attributes
24 * @param Identifier|null $name Parameter name (for named parameters)
25 */
26 public function __construct(
27 Expr $value, bool $byRef = false, bool $unpack = false, array $attributes = [],
28 ?Identifier $name = null
29 ) {
30 $this->attributes = $attributes;
31 $this->name = $name;
32 $this->value = $value;
33 $this->byRef = $byRef;
34 $this->unpack = $unpack;
35 }
36
37 public function getSubNodeNames(): array {
38 return ['name', 'value', 'byRef', 'unpack'];
39 }
40
41 public function getType(): string {
42 return 'Arg';
43 }
44 }
45