Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
10 | class LocationId |
||
11 | { |
||
12 | /** |
||
13 | * @var locationId |
||
14 | */ |
||
15 | protected $locationId; |
||
16 | |||
17 | /** |
||
18 | * Location ID constructor |
||
19 | * |
||
20 | * @param int $lid |
||
21 | */ |
||
22 | 3 | public function __construct ( int $lid ) |
|
23 | { |
||
24 | 3 | $this->locationId = $lid; |
|
|
|||
25 | 3 | } |
|
26 | |||
27 | /** |
||
28 | * @return int |
||
29 | */ |
||
30 | public function __toInt () : int |
||
31 | { |
||
32 | return $this->locationId; |
||
33 | } |
||
34 | |||
35 | 3 | public function __toString () : string |
|
38 | } |
||
39 | } |
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..