Erebot  latest
A modular IRC bot for PHP 5.3+
Erebot\Styling\VariableInterface Interface Reference

Interface for a typed variable to use in a template. More...

+ Inheritance diagram for Erebot\Styling\VariableInterface:

Public Member Functions

 getValue ()
 
 render (\Erebot\IntlInterface $translator)
 

Detailed Description

Interface for a typed variable to use in a template.

Definition at line 28 of file VariableInterface.php.

Member Function Documentation

Erebot\Styling\VariableInterface::getValue ( )
Erebot\Styling\VariableInterface::render ( \Erebot\IntlInterface  $translator)

Renders the content of this variable.

Parameters
Erebot::IntlInterface$translatorA translator that can be used to change the rendering depending on the target locale.
Return values
stringThe variable rendered as a string.

Implemented in Erebot\Styling\Variables\DateTimeVariable, Erebot\Styling\Variables\CurrencyVariable, Erebot\Styling\Variables\StringVariable, Erebot\Styling\Variables\DurationVariable, Erebot\Styling\Variables\FloatVariable, and Erebot\Styling\Variables\IntegerVariable.


The documentation for this interface was generated from the following file: