Files
apimacro/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php

31 lines
795 B
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php declare(strict_types=1);
namespace PhpParser\Node\Expr;
use PhpParser\Node\Expr;
2024-05-17 12:24:19 +00:00
use PhpParser\Node\InterpolatedStringPart;
2024-05-07 12:17:25 +02:00
2024-05-17 12:24:19 +00:00
class ShellExec extends Expr {
/** @var (Expr|InterpolatedStringPart)[] Interpolated string array */
public array $parts;
2024-05-07 12:17:25 +02:00
/**
* Constructs a shell exec (backtick) node.
*
2024-05-17 12:24:19 +00:00
* @param (Expr|InterpolatedStringPart)[] $parts Interpolated string array
* @param array<string, mixed> $attributes Additional attributes
2024-05-07 12:17:25 +02:00
*/
public function __construct(array $parts, array $attributes = []) {
$this->attributes = $attributes;
$this->parts = $parts;
}
2024-05-17 12:24:19 +00:00
public function getSubNodeNames(): array {
2024-05-07 12:17:25 +02:00
return ['parts'];
}
2024-05-17 12:24:19 +00:00
public function getType(): string {
2024-05-07 12:17:25 +02:00
return 'Expr_ShellExec';
}
}