love_php/app/library/aliyun-php-sdk-core/Http/HttpResponse.php
2026-04-02 09:20:51 +08:00

46 lines
741 B
PHP

<?php
/*
* This file is part of the Qsnh/meedu.
*
* (c) XiaoTeng <616896861@qq.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
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()
{
if (200 <= $this->status && 300 > $this->status) {
return true;
}
return false;
}
}