Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
33
vendor/doctrine/rst-parser/lib/Nodes/WrapperNode.php
vendored
Normal file
33
vendor/doctrine/rst-parser/lib/Nodes/WrapperNode.php
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\RST\Nodes;
|
||||
|
||||
final class WrapperNode extends Node
|
||||
{
|
||||
/** @var Node|null */
|
||||
private $node;
|
||||
|
||||
/** @var string */
|
||||
private $before;
|
||||
|
||||
/** @var string */
|
||||
private $after;
|
||||
|
||||
public function __construct(?Node $node, string $before = '', string $after = '')
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->node = $node;
|
||||
$this->before = $before;
|
||||
$this->after = $after;
|
||||
}
|
||||
|
||||
protected function doRender(): string
|
||||
{
|
||||
$contents = $this->node !== null ? $this->node->render() : '';
|
||||
|
||||
return $this->before . $contents . $this->after;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue