1 | <?php |
||
4 | class Classroom |
||
5 | { |
||
6 | /** @var string */ |
||
7 | private $title; |
||
8 | |||
9 | /** @var \DateTime */ |
||
10 | private $startTime; |
||
11 | |||
12 | /** @var string */ |
||
13 | private $presenterEmail; |
||
14 | |||
15 | |||
16 | 4 | public function __construct($title, \DateTime $startTime, $presenterEmail) |
|
22 | |||
23 | /** |
||
24 | * @param string $title |
||
25 | * @param \DateTime $startTime |
||
26 | * @param string $presenterEmail |
||
27 | * @return self |
||
28 | */ |
||
29 | 4 | public static function build($title, \DateTime $startTime, $presenterEmail) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function __toString() |
||
41 | |||
42 | /** |
||
43 | * @return array |
||
44 | */ |
||
45 | 2 | public function toArray() |
|
53 | } |
||
54 |
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..