1: | <?php declare(strict_types=1); |
2: | |
3: | namespace PhpParser\Node; |
4: | |
5: | use PhpParser\Node; |
6: | use PhpParser\NodeAbstract; |
7: | |
8: | class MatchArm extends NodeAbstract { |
9: | |
10: | public ?array $conds; |
11: | public Expr $body; |
12: | |
13: | |
14: | |
15: | |
16: | public function __construct(?array $conds, Node\Expr $body, array $attributes = []) { |
17: | $this->conds = $conds; |
18: | $this->body = $body; |
19: | $this->attributes = $attributes; |
20: | } |
21: | |
22: | public function getSubNodeNames(): array { |
23: | return ['conds', 'body']; |
24: | } |
25: | |
26: | public function getType(): string { |
27: | return 'MatchArm'; |
28: | } |
29: | } |
30: | |