| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class Symbol implements StackableSymbolInterface |
||
| 11 | { |
||
| 12 | private $header; |
||
| 13 | |||
| 14 | private $index; |
||
| 15 | |||
| 16 | private $symbol; |
||
| 17 | |||
| 18 | public function __construct(Node $header, int $index) |
||
| 19 | { |
||
| 20 | $this->header = $header; |
||
| 21 | $this->index = $index; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function setSymbol(Node $node): void |
||
| 25 | { |
||
| 26 | $this->symbol = $node; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getHeader(): Node |
||
| 30 | { |
||
| 31 | return $this->header; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getIndex(): int |
||
| 35 | { |
||
| 36 | return $this->index; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return Node |
||
| 41 | * @throws Exception |
||
| 42 | */ |
||
| 43 | public function getSymbol(): Node |
||
| 51 | } |
||
| 52 | } |
||
| 53 |