Anchor.php
2 years ago
OutputException.php
4 years ago
ParserState.php
2 years ago
SourceException.php
4 years ago
UnexpectedEOFException.php
4 years ago
UnexpectedTokenException.php
4 years ago
index.php
3 years ago
Anchor.php
18 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Sabberworm\CSS\Parsing; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class Anchor |
| 5 | { |
| 6 | private $iPosition; |
| 7 | private $oParserState; |
| 8 | public function __construct($iPosition, ParserState $oParserState) |
| 9 | { |
| 10 | $this->iPosition = $iPosition; |
| 11 | $this->oParserState = $oParserState; |
| 12 | } |
| 13 | public function backtrack() |
| 14 | { |
| 15 | $this->oParserState->setPosition($this->iPosition); |
| 16 | } |
| 17 | } |
| 18 |