| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | public function __construct($strategyName, $vacancies, $timezone = null) |
||
| 10 | { |
||
| 11 | switch ($strategyName) { |
||
| 12 | case 'timeslot': |
||
| 13 | $this->strategy = new TimeslotCalendar($vacancies, $timezone); |
||
| 14 | break; |
||
| 15 | case 'dateslot': |
||
| 16 | $this->strategy = new DateslotCalendar($vacancies, $timezone); |
||
| 17 | break; |
||
| 18 | default: |
||
| 19 | // Throw exception |
||
| 20 | break; |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 35 |