1 | <?php |
||
12 | class CalendRExtension extends \Twig_Extension |
||
13 | { |
||
14 | /** |
||
15 | * @var Calendar |
||
16 | */ |
||
17 | protected $factory; |
||
18 | |||
19 | /** |
||
20 | * @param Calendar $factory |
||
21 | */ |
||
22 | public function __construct(Calendar $factory) |
||
26 | |||
27 | /** |
||
28 | * @return array<\Twig_Function> |
||
29 | */ |
||
30 | public function getFunctions() |
||
40 | |||
41 | /** |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function getYear() |
||
48 | |||
49 | /** |
||
50 | * @return mixed |
||
51 | */ |
||
52 | public function getMonth() |
||
56 | |||
57 | /** |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function getWeek() |
||
64 | |||
65 | /** |
||
66 | * @return mixed |
||
67 | */ |
||
68 | public function getDay() |
||
72 | |||
73 | /** |
||
74 | * @return mixed |
||
75 | */ |
||
76 | public function getEvents() |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getName() |
||
88 | } |
||
89 |