1 | <?php |
||
12 | class DayOfWeekCollection implements SerializableInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string[] |
||
16 | */ |
||
17 | private $daysOfWeek = []; |
||
18 | |||
19 | /** |
||
20 | * DayOfWeekCollection constructor. |
||
21 | * @param DayOfWeek[] ...$daysOfWeek |
||
22 | */ |
||
23 | public function __construct(DayOfWeek ...$daysOfWeek) |
||
27 | |||
28 | /** |
||
29 | * Keeps the collection of days of week unique. |
||
30 | * Makes sure that the objects are stored as strings to allow PHP serialize method. |
||
31 | * |
||
32 | * @param DayOfWeek $dayOfWeek |
||
33 | * @return DayOfWeekCollection |
||
34 | */ |
||
35 | public function addDayOfWeek(DayOfWeek $dayOfWeek) |
||
48 | |||
49 | /** |
||
50 | * @return DayOfWeek[] |
||
51 | */ |
||
52 | public function getDaysOfWeek() |
||
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public static function deserialize(array $data) |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | public function serialize() |
||
83 | |||
84 | /** |
||
85 | * @param Days $days |
||
86 | * @return self |
||
87 | */ |
||
88 | public static function fromUdb3ModelDays(Days $days) |
||
99 | } |
||
100 |
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..