1 | <?php |
||
18 | final class TaxRate implements CreatableFromArray, ContainsMetadata |
||
19 | { |
||
20 | use LivemodeTrait, MetadataTrait; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $id; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $isActive; |
||
31 | |||
32 | /** |
||
33 | * @var \DateTimeImmutable |
||
34 | */ |
||
35 | private $createdAt; |
||
36 | |||
37 | /** |
||
38 | * @var ?string |
||
39 | */ |
||
40 | private $description; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | private $displayName; |
||
46 | |||
47 | /** |
||
48 | * @var bool |
||
49 | */ |
||
50 | private $isInclusive; |
||
51 | |||
52 | /** |
||
53 | * @var ?string |
||
54 | */ |
||
55 | private $jurisdiction; |
||
56 | |||
57 | /** |
||
58 | * @var float |
||
59 | */ |
||
60 | private $percentage; |
||
61 | |||
62 | 2 | public static function createFromArray(array $data): self |
|
79 | |||
80 | 1 | public function getId(): string |
|
84 | |||
85 | 1 | public function isActive(): bool |
|
89 | |||
90 | 1 | public function getCreatedAt(): \DateTimeImmutable |
|
94 | |||
95 | 1 | public function getDescription(): ?string |
|
99 | |||
100 | 1 | public function getDisplayName(): string |
|
104 | |||
105 | 1 | public function isInclusive(): bool |
|
109 | |||
110 | 1 | public function getJurisdiction(): ?string |
|
114 | |||
115 | 1 | public function getPercentage(): float |
|
119 | } |
||
120 |
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..