1
0
mirror of https://github.com/flarum/core.git synced 2025-10-19 02:36:08 +02:00
Files
php-flarum/src/Api/Response.php
2015-08-27 01:40:18 +02:00

32 lines
612 B
PHP

<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Api;
use Psr\Http\Message\ResponseInterface;
class Response
{
public function __construct(ResponseInterface $response)
{
$this->response = $response;
}
public function getBody()
{
return json_decode($this->response->getBody());
}
public function getStatusCode()
{
return $this->response->getStatusCode();
}
}