1 | <?php |
||
17 | final class ShowResponse implements ApiResponse |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $address; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $tag; |
||
28 | |||
29 | /** |
||
30 | * @var \DateTime |
||
31 | */ |
||
32 | private $createdAt; |
||
33 | |||
34 | /** |
||
35 | * @param string $address |
||
36 | */ |
||
37 | private function __construct($address) |
||
42 | |||
43 | /** |
||
44 | * @param array $data |
||
45 | * |
||
46 | * @return ShowResponse |
||
47 | */ |
||
48 | public static function create(array $data) |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getAddress() |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getTag() |
||
77 | |||
78 | /** |
||
79 | * @param string $tag |
||
80 | */ |
||
81 | private function setTag($tag) |
||
85 | |||
86 | /** |
||
87 | * @return \DateTime |
||
88 | */ |
||
89 | public function getCreatedAt() |
||
93 | |||
94 | /** |
||
95 | * @param \DateTime $createdAt |
||
96 | */ |
||
97 | private function setCreatedAt(\DateTime $createdAt) |
||
101 | } |
||
102 |