1 | <?php |
||
9 | class Calendar |
||
10 | { |
||
11 | /** |
||
12 | * Strategy Calendar. |
||
13 | * |
||
14 | * @var TimeslotCalendar|DateslotCalendar |
||
15 | */ |
||
16 | protected $strategy = null; |
||
17 | |||
18 | /** |
||
19 | * Construct the class and load the strategy Calendar. |
||
20 | * |
||
21 | * @param string $strategyName |
||
22 | * @param HasMany $vacancies The entity relationship to Vacancies. |
||
23 | * @param string $timezone |
||
24 | * |
||
25 | * @throws Timegridio\Concierge\Exceptions\StrategyNotRecognizedException |
||
26 | */ |
||
27 | 18 | public function __construct($strategyName, HasMany $vacancies, $timezone = null) |
|
40 | |||
41 | /** |
||
42 | * Pass method call to the Calendar strategy. |
||
43 | * |
||
44 | * @param string $name |
||
45 | * @param mixed $arguments |
||
46 | * |
||
47 | * @throws Timegridio\Concierge\Exceptions\StrategyMethodNotRecognizedException |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | 17 | public function __call($name, $arguments) |
|
59 | } |
||
60 |