| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class Translator |
||
| 11 | { |
||
| 12 | private $tree; |
||
| 13 | |||
| 14 | private $listener; |
||
| 15 | |||
| 16 | private $stack; |
||
| 17 | |||
| 18 | public function __construct(Tree $tree, TranslatorListenerInterface $listener) |
||
| 19 | { |
||
| 20 | $this->tree = $tree; |
||
| 21 | $this->listener = $listener; |
||
| 22 | $this->stack = new SymbolStack(); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @throws Exception |
||
| 27 | */ |
||
| 28 | public function run(): void |
||
| 46 | } |
||
| 47 | } |
||
| 48 |