1 | <?php |
||
20 | class Customer extends AbstractTarget implements CustomerInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var integer |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $login; |
||
31 | |||
32 | /** |
||
33 | * @var CustomerInterface |
||
34 | */ |
||
35 | protected $seller; |
||
36 | |||
37 | /** |
||
38 | * @var Customer[] |
||
39 | */ |
||
40 | protected $sellers = []; |
||
41 | |||
42 | 1 | public function __construct($id, $login, CustomerInterface $seller = null) |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getUniqueId() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getLogin() |
||
64 | |||
65 | public function getSeller() |
||
69 | |||
70 | public function jsonSerialize() |
||
74 | } |
||
75 |