|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
A class used to format floating-point values. More...
Inheritance diagram for Erebot\Styling\Variables\FloatVariable:Public Member Functions | |
| __construct ($value) | |
| getValue () | |
| render (\Erebot\IntlInterface $translator) | |
Protected Attributes | |
| $value | |
| The float-point value to format. | |
A class used to format floating-point values.
Definition at line 27 of file FloatVariable.php.
| Erebot\Styling\Variables\FloatVariable::__construct | ( | $value | ) |
Constructor.
| float | $value | The floating-point value to format. |
Definition at line 38 of file FloatVariable.php.
References Erebot\Styling\Variables\FloatVariable\$value.
| Erebot\Styling\Variables\FloatVariable::getValue | ( | ) |
Returns the value stored in this object.
| mixed | Value stored in this object. |
Implements Erebot\Styling\VariableInterface.
Definition at line 53 of file FloatVariable.php.
References Erebot\Styling\Variables\FloatVariable\$value.
| Erebot\Styling\Variables\FloatVariable::render | ( | \Erebot\IntlInterface | $translator | ) |
Renders the content of this variable.
| Erebot::IntlInterface | $translator | A translator that can be used to change the rendering depending on the target locale. |
| string | The variable rendered as a string. |
Implements Erebot\Styling\VariableInterface.
Definition at line 43 of file FloatVariable.php.
References Erebot\IntlInterface\LC_NUMERIC.