Completed
Pull Request — master (#325)
by Marc
02:06
created

StandardRenderable::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace TYPO3Fluid\Fluid\Core\Rendering;
3
4
/*
5
 * This file belongs to the package "TYPO3 Fluid".
6
 * See LICENSE.txt that was shipped with this package.
7
 */
8
9
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface;
10
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
11
12
/**
13
 * Class StandardRenderable
14
 */
15
class StandardRenderable extends AbstractRenderable
16
{
17
    /**
18
     * @param RenderingContextInterface $renderingContext
19
     * @return mixed
20
     */
21
    public function render(RenderingContextInterface $renderingContext)
22
    {
23
        return $this->getNode()->evaluate($renderingContext);
24
    }
25
}
26