| 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 | public function __construct($id, $login, $seller = null) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function getLogin() |
||
| 56 | |||
| 57 | public function jsonSerialize() |
||
| 61 | } |
||
| 62 |