gl-website-deployer/vendor/doctrine/rst-parser/lib/Directives/Dummy.php

30 lines
560 B
PHP
Raw Permalink Normal View History

2024-11-19 08:02:04 +01:00
<?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,
]);
}
}