| 1 | <?php |
||
| 17 | final class ShowResponse implements ApiResponse |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $address; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var \DateTime |
||
| 26 | */ |
||
| 27 | private $createdAt; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $address |
||
| 31 | */ |
||
| 32 | private function __construct($address) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param array $data |
||
| 40 | * |
||
| 41 | * @return ShowResponse |
||
| 42 | */ |
||
| 43 | public static function create(array $data) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getAddress() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return \DateTime |
||
| 64 | */ |
||
| 65 | public function getCreatedAt() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param \DateTime $createdAt |
||
| 72 | */ |
||
| 73 | private function setCreatedAt(\DateTime $createdAt) |
||
| 77 | } |
||
| 78 |