1: <?php
 2: namespace Pharborist\ControlStructures;
 3: 
 4: use Pharborist\StatementNode;
 5: use Pharborist\ExpressionNode;
 6: use Pharborist\StatementBlockNode;
 7: 
 8: /**
 9:  * A case statement in switch control structure.
10:  */
11: class CaseNode extends StatementNode {
12:   /**
13:    * @var ExpressionNode
14:    */
15:   protected $matchOn;
16: 
17:   /**
18:    * @var StatementBlockNode
19:    */
20:   protected $body;
21: 
22:   /**
23:    * @return ExpressionNode
24:    */
25:   public function getMatchOn() {
26:     return $this->matchOn;
27:   }
28: 
29:   /**
30:    * @return StatementBlockNode
31:    */
32:   public function getBody() {
33:     return $this->body;
34:   }
35: }
36: