| 1 | <?php |
||
| 13 | class BaseFormatter implements TokenVisitorInterface { |
||
| 14 | |||
| 15 | /** @var Parser */ |
||
| 16 | protected $parser; |
||
| 17 | /** @var Profile */ |
||
| 18 | protected $config; |
||
| 19 | /** @var Writer */ |
||
| 20 | protected $writer; |
||
| 21 | /** @var Context */ |
||
| 22 | protected $context; |
||
| 23 | /** @var TokenMatcher */ |
||
| 24 | protected $matcher; |
||
| 25 | |||
| 26 | protected $nextToken; |
||
| 27 | protected $prevToken; |
||
| 28 | |||
| 29 | public function __construct(Parser $parser, Profile $profile, Writer $writer) { |
||
| 38 | |||
| 39 | public function visitToken(Token $token) { |
||
| 45 | |||
| 46 | protected function doVisitToken(Token $token) { |
||
| 49 | |||
| 50 | protected function init() { |
||
| 53 | |||
| 54 | } |
||
| 55 |