for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TYPO3Fluid\Fluid\Core\Rendering;
/*
* This file belongs to the package "TYPO3 Fluid".
* See LICENSE.txt that was shipped with this package.
*/
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface;
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\TextNode;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
/**
* Class AbstractRenderable
abstract class AbstractRenderable implements RenderableInterface
{
* @var string
protected $name;
* @var NodeInterface
protected $node;
* @return string
public function getName()
return $this->name;
}
* @param string $name
* @return RenderableClosure
public function setName($name)
$this->name = $name;
return $this;
* @param NodeInterface $node
public function setNode(NodeInterface $node)
$this->node = $node;
* @return NodeInterface
public function getNode()
return $this->node ? $this->node : new TextNode(sprintf('%s (%s)', static::class, $this->name));