2021-02-11 19:54:22 -05:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
* Hummingbird Anime List Client
|
|
|
|
*
|
|
|
|
* An API client for Kitsu to manage anime and manga watch lists
|
|
|
|
*
|
|
|
|
* PHP version 8
|
|
|
|
*
|
2022-03-04 15:50:35 -05:00
|
|
|
* @copyright 2015 - 2022 Timothy J. Warren <tim@timshome.page>
|
2021-02-11 19:54:22 -05:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @version 5.2
|
2022-03-04 15:50:35 -05:00
|
|
|
* @link https://git.timshome.page/timw4mail/HummingBirdAnimeClient
|
2021-02-11 19:54:22 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Aviat\Ion;
|
|
|
|
|
2022-03-03 17:26:09 -05:00
|
|
|
use InvalidArgumentException;
|
|
|
|
|
2021-02-11 19:54:22 -05:00
|
|
|
/**
|
|
|
|
* View Interface abstracting an HTTP Response
|
|
|
|
*/
|
2022-03-03 17:26:09 -05:00
|
|
|
interface HttpViewInterface extends ViewInterface
|
|
|
|
{
|
2021-02-11 19:54:22 -05:00
|
|
|
/**
|
|
|
|
* Set the status code of the request
|
|
|
|
*
|
2022-03-03 17:26:09 -05:00
|
|
|
* @throws InvalidArgumentException
|
2021-02-11 19:54:22 -05:00
|
|
|
*/
|
|
|
|
public function setStatusCode(int $code): self;
|
2022-03-03 17:26:09 -05:00
|
|
|
}
|