| 1 | <?php |
||
| 17 | class PercentageExtension extends \Twig_Extension |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function getFilters() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param float $number |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getPercentage($number) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getName() |
||
| 48 | } |
||
| 49 |