1 | <?php |
||
21 | class Wishlist implements WishlistInterface |
||
22 | { |
||
23 | /** @var int */ |
||
24 | protected $id; |
||
25 | |||
26 | /** @var Collection|WishlistProductInterface[] */ |
||
27 | protected $wishlistProducts; |
||
28 | |||
29 | /** @var ShopUserInterface|null */ |
||
30 | protected $shopUser; |
||
31 | |||
32 | /** @var TokenInterface|null */ |
||
33 | protected $token; |
||
34 | |||
35 | public function __construct() |
||
40 | |||
41 | public function getId(): ?int |
||
45 | |||
46 | public function getProducts(): Collection |
||
56 | |||
57 | public function getWishlistProducts(): Collection |
||
61 | |||
62 | public function hasProduct(ProductInterface $product): bool |
||
72 | |||
73 | public function hasWishlistProduct(WishlistProductInterface $wishlistProduct): bool |
||
77 | |||
78 | public function addWishlistProduct(WishlistProductInterface $wishlistProduct): void |
||
85 | |||
86 | public function getShopUser(): ?ShopUserInterface |
||
90 | |||
91 | public function setShopUser(ShopUserInterface $shopUser): void |
||
95 | |||
96 | public function getToken(): string |
||
100 | |||
101 | public function setToken(string $token): void |
||
105 | } |
||
106 |
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..