1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace OSS\Result;
- class ExistResult extends Result
- {
-
- protected function parseDataFromResponse()
- {
- return intval($this->rawResponse->status) === 200 ? true : false;
- }
-
- protected function isResponseOk()
- {
- $status = $this->rawResponse->status;
- if ((int)(intval($status) / 100) == 2 || (int)(intval($status)) === 404) {
- return true;
- }
- return false;
- }
- }
|