1 | <?php |
||
12 | class InvoiceAddress extends BaseAddress |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $email; |
||
18 | |||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | public function getEmail(): string |
||
26 | |||
27 | /** |
||
28 | * @param string $email |
||
29 | * |
||
30 | * @return InvoiceAddress |
||
31 | */ |
||
32 | public function withEmail(string $email) |
||
39 | |||
40 | /** |
||
41 | * Create an API response object from the HTTP response from the API server. |
||
42 | * |
||
43 | * @param array $data |
||
44 | * |
||
45 | * @return self |
||
46 | */ |
||
47 | 2 | public static function createFromArray(array $data) |
|
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | 1 | public function toArray() |
|
72 | } |
||
73 |