gl-website-deployer/vendor/doctrine/rst-parser/lib/Event/PreParseDocumentEvent.php

41 lines
754 B
PHP
Raw Normal View History

2024-11-19 08:02:04 +01:00
<?php
declare(strict_types=1);
namespace Doctrine\RST\Event;
use Doctrine\Common\EventArgs;
use Doctrine\RST\Parser;
final class PreParseDocumentEvent extends EventArgs
{
public const PRE_PARSE_DOCUMENT = 'preParseDocument';
/** @var Parser */
private $parser;
/** @var string */
private $contents;
public function __construct(Parser $parser, string $contents)
{
$this->parser = $parser;
$this->contents = $contents;
}
public function getParser(): Parser
{
return $this->parser;
}
public function setContents(string $contents): void
{
$this->contents = $contents;
}
public function getContents(): string
{
return $this->contents;
}
}