30 lines
560 B
PHP
30 lines
560 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Doctrine\RST\Directives;
|
||
|
|
||
|
use Doctrine\RST\Nodes\Node;
|
||
|
use Doctrine\RST\Parser;
|
||
|
|
||
|
final class Dummy extends Directive
|
||
|
{
|
||
|
public function getName(): string
|
||
|
{
|
||
|
return 'dummy';
|
||
|
}
|
||
|
|
||
|
/** @param string[] $options */
|
||
|
public function processNode(
|
||
|
Parser $parser,
|
||
|
string $variable,
|
||
|
string $data,
|
||
|
array $options
|
||
|
): ?Node {
|
||
|
return $parser->getNodeFactory()->createDummyNode([
|
||
|
'data' => $data,
|
||
|
'options' => $options,
|
||
|
]);
|
||
|
}
|
||
|
}
|