| 1 | <?php |
||
| 9 | class FlagbitCurrencyExtension extends Twig_Extension implements Twig_Extension_GlobalsInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Currency |
||
| 13 | */ |
||
| 14 | private $currency; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param Currency $currency |
||
| 18 | */ |
||
| 19 | 4 | public function __construct(Currency $currency) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Returns the name of the extension. |
||
| 26 | * |
||
| 27 | * @return string The extension name |
||
| 28 | */ |
||
| 29 | 3 | public function getName() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | 3 | public function getFunctions() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | 3 | public function getGlobals() |
|
| 62 | } |
||
| 63 |