| 1 | <?php |
||
| 11 | class RolloutExtension extends \Twig_Extension |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var GroupDefinitionAwareRollout |
||
| 15 | */ |
||
| 16 | private $rollout; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param GroupDefinitionAwareRollout $rollout |
||
| 20 | */ |
||
| 21 | public function __construct(GroupDefinitionAwareRollout $rollout) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns a list of functions to add to the existing list. |
||
| 28 | * |
||
| 29 | * @return array An array of functions |
||
| 30 | */ |
||
| 31 | public function getFunctions() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Returns the name of the extension. |
||
| 42 | * |
||
| 43 | * @return string The extension name |
||
| 44 | */ |
||
| 45 | public function getName() |
||
| 49 | } |
||
| 50 |