Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
40
vendor/doctrine/rst-parser/lib/Event/PreParseDocumentEvent.php
vendored
Normal file
40
vendor/doctrine/rst-parser/lib/Event/PreParseDocumentEvent.php
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue