Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | final class StrAsClientReference implements XRoadMember |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $parts; |
||
11 | |||
12 | 1 | public function xRoadInstance(): string |
|
15 | } |
||
16 | |||
17 | 1 | public function memberClass(): string |
|
18 | { |
||
19 | 1 | return $this->parts[1]; |
|
20 | } |
||
21 | |||
22 | 1 | public function memberCode(): string |
|
23 | { |
||
24 | 1 | return $this->parts[2]; |
|
25 | } |
||
26 | |||
27 | 1 | public function subSystemCode(): string |
|
28 | { |
||
29 | 1 | return $this->parts[3]; |
|
30 | } |
||
31 | |||
32 | 2 | public function __construct(string $reference) |
|
40 | 1 | } |
|
41 | } |
||
42 |
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..