1 | <?php |
||
19 | class Range extends PeriodAbstract |
||
20 | { |
||
21 | /** |
||
22 | * @param \DateTime $begin |
||
23 | * @param \DateTime $end |
||
24 | * @param FactoryInterface $factory |
||
|
|||
25 | */ |
||
26 | public function __construct(\DateTime $begin, \DateTime $end, $factory = null) |
||
32 | |||
33 | /** |
||
34 | * @param \DateTime $start |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public static function isValid(\DateTime $start) |
||
42 | |||
43 | /** |
||
44 | * @return Day |
||
45 | */ |
||
46 | public function getNext() |
||
56 | |||
57 | /** |
||
58 | * @return Day |
||
59 | */ |
||
60 | public function getPrevious() |
||
70 | |||
71 | /** |
||
72 | * Returns the period as a DatePeriod. |
||
73 | * |
||
74 | * @return \DatePeriod |
||
75 | */ |
||
76 | public function getDatePeriod() |
||
80 | |||
81 | /** |
||
82 | * Returns a \DateInterval equivalent to the period. |
||
83 | * |
||
84 | * @throws Exception\NotImplemented |
||
85 | */ |
||
86 | public static function getDateInterval() |
||
90 | } |
||
91 |
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.