Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
$lineNumber the line number (starting from 1, not from 0)
*/
public function __construct(string $text, ?Settings $parserSettings = null, int $lineNumber = 1)
{
if ($parserSettings === null) {
$parserSettings = Settings::create();
}
$this->parserState = new ParserState($text, $parserSettings, $lineNumber);
}
/**
* Parses the CSS provided to the constructor and creates a `Document` from it.
*
* @throws SourceException
*/
public function parse(): Document
{
return Document::parse($this->parserState);
}
}