| 1 | <?php |
||
| 9 | class OpeningHour implements SerializableInterface |
||
| 10 | { |
||
| 11 | const FORMAT = 'H:i:s'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Time |
||
| 15 | */ |
||
| 16 | private $opens; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Time |
||
| 20 | */ |
||
| 21 | private $closes; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var WeekDay[] |
||
| 25 | */ |
||
| 26 | private $weekDays; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * OpeningHour constructor. |
||
| 30 | * @param Time $opens |
||
| 31 | * @param Time $closes |
||
| 32 | * @param WeekDay[] $weekDays |
||
| 33 | */ |
||
| 34 | public function __construct( |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return Time |
||
| 46 | */ |
||
| 47 | public function getOpens() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return Time |
||
| 54 | */ |
||
| 55 | public function getCloses() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return WeekDay[] |
||
| 62 | */ |
||
| 63 | public function getWeekDays() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @inheritdoc |
||
| 70 | */ |
||
| 71 | public static function deserialize(array $data) |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @inheritdoc |
||
| 93 | */ |
||
| 94 | public function serialize() |
||
| 109 | } |
||
| 110 |
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..