Completed
Pull Request — master (#457)
by Claus
02:40
created

ViewHelperNodeProxy   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 2

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setChildNodes() 0 4 1
A setArguments() 0 4 1
A setUninitializedViewHelper() 0 6 1
1
<?php
2
namespace TYPO3Fluid\Fluid\Core\Compiler;
3
4
5
use TYPO3Fluid\Fluid\Core\Parser\ParsingState;
6
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\NodeInterface;
7
use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode;
8
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
9
use TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface;
10
11
class ViewHelperNodeProxy extends ViewHelperNode
12
{
13
    public function __construct(RenderingContextInterface $renderingContext, $namespace = null, $identifier = null, array $arguments = [], ?ParsingState $state = null)
14
    {
15
16
    }
17
18
    /**
19
     * @param NodeInterface[] $childNodes
20
     */
21
    public function setChildNodes(array $childNodes): void
22
    {
23
        $this->childNodes = $childNodes;
24
    }
25
26
    /**
27
     * @param NodeInterface[] $arguments
28
     */
29
    public function setArguments(array $arguments): void
30
    {
31
        $this->arguments = $arguments;
32
    }
33
34
    /**
35
     * @param ViewHelperInterface $uninitializedViewHelper
36
     */
37
    public function setUninitializedViewHelper(ViewHelperInterface $uninitializedViewHelper): void
38
    {
39
        $this->uninitializedViewHelper = $uninitializedViewHelper;
40
        $this->viewHelperClassName = get_class($uninitializedViewHelper);
41
        $this->argumentDefinitions = $uninitializedViewHelper->prepareArguments();
42
    }
43
44
}