1: <?php
2: namespace Pharborist\Generators;
3:
4: use Pharborist\ParentNode;
5: use Pharborist\Node;
6: use Pharborist\ExpressionNode;
7:
8: /**
9: * A yield expression.
10: */
11: class YieldNode extends ParentNode implements ExpressionNode {
12: /**
13: * @var Node
14: */
15: protected $key;
16:
17: /**
18: * @var Node
19: */
20: protected $value;
21:
22: /**
23: * @return Node
24: */
25: public function getKey() {
26: return $this->key;
27: }
28:
29: /**
30: * @return Node
31: */
32: public function getValue() {
33: return $this->value;
34: }
35: }
36: