123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- class HttpResponse
- {
-
- private $body;
-
- private $status;
-
- public function getBody()
- {
- return $this->body;
- }
-
- public function setBody($body)
- {
- $this->body = $body;
- }
-
- public function getStatus()
- {
- return $this->status;
- }
-
- public function setStatus($status)
- {
- $this->status = $status;
- }
-
- public function isSuccess()
- {
- return 200 <= $this->status && 300 > $this->status;
- }
- }
|