1 | <?php |
||
25 | class Customer extends BaseCustomer implements CustomerInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var Collection|OrderInterface[] |
||
29 | */ |
||
30 | protected $orders; |
||
31 | |||
32 | /** |
||
33 | * @var AddressInterface |
||
34 | */ |
||
35 | protected $defaultAddress; |
||
36 | |||
37 | /** |
||
38 | * @var Collection|AddressInterface[] |
||
39 | */ |
||
40 | protected $addresses; |
||
41 | |||
42 | /** |
||
43 | * @var ShopUserInterface |
||
44 | */ |
||
45 | protected $user; |
||
46 | |||
47 | public function __construct() |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getOrders(): Collection |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getDefaultAddress(): ?AddressInterface |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function setDefaultAddress(?AddressInterface $defaultAddress): void |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function addAddress(AddressInterface $address): void |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function removeAddress(AddressInterface $address): void |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function hasAddress(AddressInterface $address): bool |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function getAddresses(): Collection |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function getUser(): ?BaseUserInterface |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | public function setUser(?BaseUserInterface $user): void |
||
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | public function hasUser(): bool |
||
158 | } |
||
159 |