1 | <?php |
||
19 | abstract class BaseResponse implements ApiResponse |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $address; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $message; |
||
30 | |||
31 | /** |
||
32 | * @param string $address |
||
33 | * @param string $message |
||
34 | */ |
||
35 | private function __construct($address, $message) |
||
40 | |||
41 | /** |
||
42 | * @param array $data |
||
43 | * |
||
44 | * @return BaseResponse |
||
45 | */ |
||
46 | public static function create(array $data) |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getAddress() |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getMessage() |
||
69 | } |
||
70 |