gl-website-deployer/vendor/doctrine/rst-parser/lib/Renderers/CallableNodeRenderer.php

24 lines
444 B
PHP
Raw Normal View History

2024-11-19 08:02:04 +01:00
<?php
declare(strict_types=1);
namespace Doctrine\RST\Renderers;
use Doctrine\RST\Nodes\CallableNode;
final class CallableNodeRenderer implements NodeRenderer
{
/** @var CallableNode */
private $callableNode;
public function __construct(CallableNode $callableNode)
{
$this->callableNode = $callableNode;
}
public function render(): string
{
return $this->callableNode->getCallable()();
}
}