1 | <?php |
||
13 | class NotificationOptions extends AbstractOptions |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var DateTime |
||
18 | */ |
||
19 | protected $remindStart = '2 days ago'; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $remindDays = '7 days'; |
||
25 | |||
26 | /** |
||
27 | * @return DateTime |
||
28 | */ |
||
29 | public function getRemindStart() |
||
35 | |||
36 | /** |
||
37 | * @param string $remindStart |
||
38 | * @throws \Exception |
||
39 | */ |
||
40 | public function setRemindStart($remindStart) |
||
49 | |||
50 | /** |
||
51 | * @return DateTime |
||
52 | */ |
||
53 | public function getRemindDays() |
||
57 | |||
58 | /** |
||
59 | * @param string $remindDays |
||
60 | */ |
||
61 | public function setRemindDays($remindDays) |
||
69 | |||
70 | /** |
||
71 | * @return \JhFlexiTime\DateTime\DateTime[] |
||
72 | */ |
||
73 | public function getRemindPeriod() |
||
78 | |||
79 | /** |
||
80 | * Get an array of dates, counting backwards using |
||
81 | * passed in total. Any dates which are weekends are excluded. |
||
82 | * You will always get an array of dates with a count equal to that of |
||
83 | * $totalDaysToCountBack |
||
84 | * |
||
85 | * |
||
86 | * @param DateTime $toDate |
||
87 | * @param int $totalDaysToCountBack |
||
88 | * |
||
89 | * @return DateTime[] |
||
90 | */ |
||
91 | private function getXWorkingDaysToDate(DateTime $toDate, $totalDaysToCountBack) |
||
108 | } |
||
109 |
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..