Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
26
vendor/doctrine/rst-parser/tests/LiteralNestedInDirective/TipDirective.php
vendored
Normal file
26
vendor/doctrine/rst-parser/tests/LiteralNestedInDirective/TipDirective.php
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Tests\RST\LiteralNestedInDirective;
|
||||
|
||||
use Doctrine\RST\Directives\SubDirective;
|
||||
use Doctrine\RST\Nodes\Node;
|
||||
use Doctrine\RST\Parser;
|
||||
|
||||
class TipDirective extends SubDirective
|
||||
{
|
||||
/** @param string[] $options */
|
||||
final public function processSub(Parser $parser, ?Node $document, string $variable, string $data, array $options): ?Node
|
||||
{
|
||||
return $parser->getNodeFactory()->createWrapperNode($document, '<div class="tip">', '</div>');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the directive name
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'tip';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue