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