1 | <?php |
||
22 | class Customer extends BaseCustomer implements CustomerInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var Collection|OrderInterface[] |
||
26 | */ |
||
27 | protected $orders; |
||
28 | |||
29 | /** |
||
30 | * @var AddressInterface |
||
31 | */ |
||
32 | protected $defaultAddress; |
||
33 | |||
34 | /** |
||
35 | * @var Collection|AddressInterface[] |
||
36 | */ |
||
37 | protected $addresses; |
||
38 | |||
39 | /** |
||
40 | * @var ShopUserInterface |
||
41 | */ |
||
42 | protected $user; |
||
43 | |||
44 | public function __construct() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getOrders(): Collection |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getDefaultAddress(): ?AddressInterface |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function setDefaultAddress(?AddressInterface $defaultAddress): void |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function addAddress(AddressInterface $address): void |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function removeAddress(AddressInterface $address): void |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function hasAddress(AddressInterface $address): bool |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function getAddresses(): Collection |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public function getUser(): ?BaseUserInterface |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | public function setUser(?BaseUserInterface $user): void |
||
147 | |||
148 | /** |
||
149 | * {@inheritdoc} |
||
150 | */ |
||
151 | public function hasUser(): bool |
||
155 | } |
||
156 |
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..