1 | <?php |
||
22 | class Fixed extends AbstractScheduled |
||
23 | { |
||
24 | /** |
||
25 | * Maintenance start time. |
||
26 | * |
||
27 | * @var \DateTime |
||
28 | */ |
||
29 | protected $start; |
||
30 | |||
31 | /** |
||
32 | * Maintenance end time. |
||
33 | * |
||
34 | * @var \DateTime |
||
35 | */ |
||
36 | protected $end; |
||
37 | |||
38 | /** |
||
39 | * Fixed constructor. |
||
40 | * |
||
41 | * @param \DateTime|string $start |
||
42 | * @param \DateTime|string $end |
||
43 | * @param \DateTimeZone|string|int $timeZone |
||
|
|||
44 | * |
||
45 | * @throws \InvalidArgumentException |
||
46 | */ |
||
47 | public function __construct($start, $end, $timeZone = null) |
||
55 | |||
56 | /** |
||
57 | * Set scheduled start time. |
||
58 | * |
||
59 | * @param \DateTime|string $start |
||
60 | * |
||
61 | * @throws \InvalidArgumentException |
||
62 | * |
||
63 | * @return $this |
||
64 | */ |
||
65 | public function setStart($start) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function getStart() |
||
91 | |||
92 | /** |
||
93 | * Set scheduled end time. |
||
94 | * |
||
95 | * @param \DateTime|string $end |
||
96 | * |
||
97 | * @throws \InvalidArgumentException |
||
98 | * |
||
99 | * @return $this |
||
100 | */ |
||
101 | public function setEnd($end) |
||
119 | |||
120 | /** |
||
121 | * {@inheritdoc} |
||
122 | */ |
||
123 | public function getEnd() |
||
127 | |||
128 | /** |
||
129 | * {@inheritdoc} |
||
130 | */ |
||
131 | public function getScheduledTimes($count = 5) |
||
144 | |||
145 | /** |
||
146 | * {@inheritdoc} |
||
147 | */ |
||
148 | public function isScheduled() |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function isActive() |
||
164 | } |
||
165 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.