24 lines
377 B
PHP
24 lines
377 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Doctrine\RST\Nodes;
|
||
|
|
||
|
final class CallableNode extends Node
|
||
|
{
|
||
|
/** @var callable */
|
||
|
private $callable;
|
||
|
|
||
|
public function __construct(callable $callable)
|
||
|
{
|
||
|
parent::__construct();
|
||
|
|
||
|
$this->callable = $callable;
|
||
|
}
|
||
|
|
||
|
public function getCallable(): callable
|
||
|
{
|
||
|
return $this->callable;
|
||
|
}
|
||
|
}
|