2018-08-08 10:12:45 -04:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
* Hummingbird Anime List Client
|
|
|
|
*
|
2018-08-22 13:48:27 -04:00
|
|
|
* An API client for Kitsu to manage anime and manga watch lists
|
2018-08-08 10:12:45 -04:00
|
|
|
*
|
2020-12-10 17:06:50 -05:00
|
|
|
* PHP version 7.4+
|
2018-08-08 10:12:45 -04:00
|
|
|
*
|
|
|
|
* @package HummingbirdAnimeClient
|
|
|
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
2020-01-08 15:39:49 -05:00
|
|
|
* @copyright 2015 - 2020 Timothy J. Warren
|
2018-08-08 10:12:45 -04:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
2020-12-10 17:06:50 -05:00
|
|
|
* @version 5.2
|
2018-08-08 10:12:45 -04:00
|
|
|
* @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Aviat\AnimeClient\Types;
|
|
|
|
|
2019-12-09 13:13:31 -05:00
|
|
|
use Aviat\AnimeClient\API\Kitsu\Enum\AnimeAiringStatus;
|
|
|
|
|
2018-08-08 10:12:45 -04:00
|
|
|
/**
|
2018-11-08 11:36:42 -05:00
|
|
|
* Type representing an anime within a watch list
|
2018-08-08 10:12:45 -04:00
|
|
|
*/
|
2018-11-08 11:36:42 -05:00
|
|
|
class Anime extends AbstractType {
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $age_rating;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $age_rating_guide;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $cover_image;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?int $episode_count;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?int $episode_length;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-21 19:22:56 -04:00
|
|
|
public array $genres = [];
|
2019-12-09 13:13:31 -05:00
|
|
|
|
|
|
|
/**
|
2020-04-21 20:09:37 -04:00
|
|
|
* @var string|int
|
2019-12-09 13:13:31 -05:00
|
|
|
*/
|
2020-04-21 20:09:37 -04:00
|
|
|
public $id = '';
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-21 19:22:56 -04:00
|
|
|
public array $included = [];
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $show_type;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $slug;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-21 19:22:56 -04:00
|
|
|
public string $status = AnimeAiringStatus::FINISHED_AIRING;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-21 19:22:56 -04:00
|
|
|
public ?array $streaming_links = [];
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $synopsis;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $title;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-04-21 19:22:56 -04:00
|
|
|
public array $titles = [];
|
2019-12-09 13:13:31 -05:00
|
|
|
|
2020-05-06 09:08:27 -04:00
|
|
|
public array $titles_more = [];
|
|
|
|
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $trailer_id;
|
2019-12-09 13:13:31 -05:00
|
|
|
|
|
|
|
/**
|
2020-07-29 15:49:16 -04:00
|
|
|
* Length of the entire series in seconds
|
|
|
|
*/
|
|
|
|
public ?int $total_length;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Kitsu detail page url
|
2019-12-09 13:13:31 -05:00
|
|
|
*/
|
2020-04-28 12:24:12 -04:00
|
|
|
public ?string $url;
|
2018-08-08 10:12:45 -04:00
|
|
|
}
|