1 | <?php |
||
17 | final class NotificationWidgetExtension extends \Twig_Extension |
||
18 | { |
||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | private $areNotificationsEnabled; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $checkFrequency; |
||
28 | |||
29 | /** |
||
30 | * @param bool $areNotificationsEnabled |
||
31 | * @param int $checkFrequency |
||
32 | */ |
||
33 | public function __construct($areNotificationsEnabled, $checkFrequency) |
||
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | public function getFunctions() |
||
55 | |||
56 | /** |
||
57 | * @param \Twig_Environment $environment |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | public function renderWidget(\Twig_Environment $environment) |
||
71 | } |
||
72 |