38 lines
629 B
PHP
38 lines
629 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Doctrine\RST\Renderers;
|
||
|
|
||
|
use Doctrine\RST\Nodes\Node;
|
||
|
|
||
|
final class RenderedNode
|
||
|
{
|
||
|
/** @var Node */
|
||
|
private $node;
|
||
|
|
||
|
/** @var string */
|
||
|
private $rendered;
|
||
|
|
||
|
public function __construct(Node $node, string $rendered)
|
||
|
{
|
||
|
$this->node = $node;
|
||
|
$this->rendered = $rendered;
|
||
|
}
|
||
|
|
||
|
public function getNode(): Node
|
||
|
{
|
||
|
return $this->node;
|
||
|
}
|
||
|
|
||
|
public function setRendered(string $rendered): void
|
||
|
{
|
||
|
$this->rendered = $rendered;
|
||
|
}
|
||
|
|
||
|
public function getRendered(): string
|
||
|
{
|
||
|
return $this->rendered;
|
||
|
}
|
||
|
}
|