| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function __construct($strategyId) |
||
| 25 | { |
||
| 26 | switch ($strategyId) { |
||
| 27 | case 'timeslot': |
||
| 28 | $this->strategy = new TimetableTimeslotStrategy(new Timetable()); |
||
| 29 | break; |
||
| 30 | case 'dateslot': |
||
| 31 | $this->strategy = new TimetableDateslotStrategy(new Timetable()); |
||
|
|
|||
| 32 | break; |
||
| 33 | default: |
||
| 34 | throw new StrategyNotRecognizedException($strategyId); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 43 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..