1: <?php
2: namespace Pharborist\ControlStructures;
3:
4: use Pharborist\ParenTrait;
5: use Pharborist\StatementNode;
6: use Pharborist\Types\IntegerNode;
7:
8: /**
9: * A continue statement.
10: */
11: class ContinueStatementNode extends StatementNode {
12: use ParenTrait;
13:
14: /**
15: * @var IntegerNode
16: */
17: protected $level;
18:
19: /**
20: * An optional numeric argument which tells continue how many
21: * enclosing structures are to be skipped to the end of.
22: * @return IntegerNode
23: */
24: public function getLevel() {
25: return $this->level;
26: }
27: }
28: