Erebot  latest
A modular IRC bot for PHP 5.3+
Erebot\Styling\Variables\IntegerVariable Class Reference

A class used to format integers. More...

+ Inheritance diagram for Erebot\Styling\Variables\IntegerVariable:

Public Member Functions

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

Protected Attributes

 $value
 Integer to format.
 

Detailed Description

A class used to format integers.

Definition at line 27 of file IntegerVariable.php.

Constructor & Destructor Documentation

Erebot\Styling\Variables\IntegerVariable::__construct (   $value)

Constructor.

Parameters
int$valueInteger value to format.

Definition at line 38 of file IntegerVariable.php.

References Erebot\Styling\Variables\IntegerVariable\$value.

Member Function Documentation

Erebot\Styling\Variables\IntegerVariable::getValue ( )

Returns the value stored in this object.

Return values
mixedValue stored in this object.

Implements Erebot\Styling\VariableInterface.

Definition at line 54 of file IntegerVariable.php.

References Erebot\Styling\Variables\IntegerVariable\$value.

Erebot\Styling\Variables\IntegerVariable::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.

Implements Erebot\Styling\VariableInterface.

Definition at line 43 of file IntegerVariable.php.

References Erebot\IntlInterface\LC_NUMERIC.


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