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

31 lines
678 B
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php declare(strict_types=1);
namespace PhpParser\Node;
use PhpParser\Node;
use PhpParser\NodeAbstract;
2024-05-17 12:24:19 +00:00
class MatchArm extends NodeAbstract {
/** @var null|list<Node\Expr> */
public ?array $conds;
2024-05-07 12:17:25 +02:00
/** @var Node\Expr */
2024-05-17 12:24:19 +00:00
public Expr $body;
2024-05-07 12:17:25 +02:00
/**
2024-05-17 12:24:19 +00:00
* @param null|list<Node\Expr> $conds
2024-05-07 12:17:25 +02:00
*/
2024-05-17 12:24:19 +00:00
public function __construct(?array $conds, Node\Expr $body, array $attributes = []) {
2024-05-07 12:17:25 +02:00
$this->conds = $conds;
$this->body = $body;
$this->attributes = $attributes;
}
2024-05-17 12:24:19 +00:00
public function getSubNodeNames(): array {
2024-05-07 12:17:25 +02:00
return ['conds', 'body'];
}
2024-05-17 12:24:19 +00:00
public function getType(): string {
2024-05-07 12:17:25 +02:00
return 'MatchArm';
}
}