TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode:
TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface

Public Member Functions

 __construct ($value)
 
 evaluate (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 getValue ()
 
 addChildNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface $childNode)
 
- Public Member Functions inherited from TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode
 evaluateChildNodes (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 getChildNodes ()
 
 addChildNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface $childNode)
 

Protected Attributes

 $value
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode
 $childNodes = array()
 

Detailed Description

Numeric Syntax Tree Node - is a container for numerics.

Definition at line 18 of file NumericNode.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode::__construct (   $value)

Constructor.

Parameters
string | number$valuevalue to store in this numericNode
Exceptions

Definition at line 32 of file NumericNode.php.

References TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode\$value.

Member Function Documentation

◆ addChildNode()

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode::addChildNode ( \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface  $childNode)

NumericNode does not allow adding child nodes, so this will always throw an exception.

Parameters
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface$childNodeThe subnode to add
Exceptions

Implements TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface.

Definition at line 65 of file NumericNode.php.

◆ evaluate()

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode::evaluate ( \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface  $renderingContext)

Return the value associated to the syntax tree.

Parameters
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
number the value stored in this node/subtree.

Implements TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface.

Definition at line 45 of file NumericNode.php.

References TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode\$value.

◆ getValue()

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode::getValue ( )

Getter for value

Returns
number The value of this node

Definition at line 54 of file NumericNode.php.

References TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NumericNode\$value.

Member Data Documentation

◆ $value