Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
56
vendor/doctrine/rst-parser/lib/Parser/Directive.php
vendored
Normal file
56
vendor/doctrine/rst-parser/lib/Parser/Directive.php
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\RST\Parser;
|
||||
|
||||
final class Directive
|
||||
{
|
||||
/** @var string */
|
||||
private $variable;
|
||||
|
||||
/** @var string */
|
||||
private $name;
|
||||
|
||||
/** @var string */
|
||||
private $data;
|
||||
|
||||
/** @var mixed[] */
|
||||
private $options = [];
|
||||
|
||||
/** @param mixed[] $options */
|
||||
public function __construct(string $variable, string $name, string $data, array $options = [])
|
||||
{
|
||||
$this->variable = $variable;
|
||||
$this->name = $name;
|
||||
$this->data = $data;
|
||||
$this->options = $options;
|
||||
}
|
||||
|
||||
public function getVariable(): string
|
||||
{
|
||||
return $this->variable;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getData(): string
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/** @return mixed[] */
|
||||
public function getOptions(): array
|
||||
{
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
/** @param mixed $value */
|
||||
public function setOption(string $key, $value): void
|
||||
{
|
||||
$this->options[$key] = $value;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue