mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
* N°7920 - laminas-mail is an abandoned package, replace it with symfony/mailer * Fix composer following merge
38 lines
658 B
PHP
38 lines
658 B
PHP
<?php
|
|
|
|
namespace Sabberworm\CSS\Parsing;
|
|
|
|
/**
|
|
* @internal since 8.7.0
|
|
*/
|
|
class Anchor
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $iPosition;
|
|
|
|
/**
|
|
* @var \Sabberworm\CSS\Parsing\ParserState
|
|
*/
|
|
private $oParserState;
|
|
|
|
/**
|
|
* @param int $iPosition
|
|
* @param \Sabberworm\CSS\Parsing\ParserState $oParserState
|
|
*/
|
|
public function __construct($iPosition, ParserState $oParserState)
|
|
{
|
|
$this->iPosition = $iPosition;
|
|
$this->oParserState = $oParserState;
|
|
}
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function backtrack()
|
|
{
|
|
$this->oParserState->setPosition($this->iPosition);
|
|
}
|
|
}
|