mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Add PHPUnit
This commit is contained in:
parent
1467777757
commit
5959dd49d7
1366 changed files with 118633 additions and 13161 deletions
|
@ -3,28 +3,28 @@
|
|||
namespace PhpParser\Node\Expr;
|
||||
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\InterpolatedStringPart;
|
||||
|
||||
class ShellExec extends Expr
|
||||
{
|
||||
/** @var array Encapsed string array */
|
||||
public $parts;
|
||||
class ShellExec extends Expr {
|
||||
/** @var (Expr|InterpolatedStringPart)[] Interpolated string array */
|
||||
public array $parts;
|
||||
|
||||
/**
|
||||
* Constructs a shell exec (backtick) node.
|
||||
*
|
||||
* @param array $parts Encapsed string array
|
||||
* @param array $attributes Additional attributes
|
||||
* @param (Expr|InterpolatedStringPart)[] $parts Interpolated string array
|
||||
* @param array<string, mixed> $attributes Additional attributes
|
||||
*/
|
||||
public function __construct(array $parts, array $attributes = []) {
|
||||
$this->attributes = $attributes;
|
||||
$this->parts = $parts;
|
||||
}
|
||||
|
||||
public function getSubNodeNames() : array {
|
||||
public function getSubNodeNames(): array {
|
||||
return ['parts'];
|
||||
}
|
||||
|
||||
public function getType() : string {
|
||||
|
||||
public function getType(): string {
|
||||
return 'Expr_ShellExec';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue