TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
NumericNode Class Reference
Inheritance diagram for NumericNode:
AbstractNode 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 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 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 (   $value)

Constructor.

Parameters
string | number$valuevalue to store in this numericNode
Exceptions
\TYPO3\CMS\Fluid\Core\Parser\Exception

Definition at line 32 of file NumericNode.php.

References NumericNode\$value.

Member Function Documentation

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
\TYPO3\CMS\Fluid\Core\Parser\Exception
Returns
void

Implements NodeInterface.

Definition at line 68 of file NumericNode.php.

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 NodeInterface.

Definition at line 46 of file NumericNode.php.

References NumericNode\$value.

getValue ( )

Getter for value

Returns
number The value of this node

Definition at line 56 of file NumericNode.php.

References NumericNode\$value.

Member Data Documentation

$value
protected