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
|
|
|
*
|
2021-02-04 11:57:01 -05:00
|
|
|
* PHP version 8
|
2018-08-08 10:12:45 -04:00
|
|
|
*
|
2022-03-04 15:50:35 -05:00
|
|
|
* @copyright 2015 - 2022 Timothy J. Warren <tim@timshome.page>
|
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
|
2022-03-04 15:50:35 -05:00
|
|
|
* @link https://git.timshome.page/timw4mail/HummingBirdAnimeClient
|
2018-08-08 10:12:45 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
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
|
|
|
*/
|
2022-03-03 17:26:09 -05:00
|
|
|
class Anime extends AbstractType
|
|
|
|
{
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?string $age_rating;
|
|
|
|
public ?string $age_rating_guide;
|
|
|
|
public ?string $cover_image;
|
|
|
|
public ?int $episode_count;
|
|
|
|
public ?int $episode_length;
|
2020-04-21 19:22:56 -04:00
|
|
|
public array $genres = [];
|
2021-02-10 17:17:51 -05:00
|
|
|
public string $id = '';
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?string $show_type;
|
|
|
|
public ?string $slug;
|
2020-04-21 19:22:56 -04:00
|
|
|
public string $status = AnimeAiringStatus::FINISHED_AIRING;
|
|
|
|
public ?array $streaming_links = [];
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?string $synopsis;
|
|
|
|
public ?string $title;
|
2020-04-21 19:22:56 -04:00
|
|
|
public array $titles = [];
|
2020-05-06 09:08:27 -04:00
|
|
|
public array $titles_more = [];
|
2022-03-03 13:52:06 -05: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
|
|
|
|
*/
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?int $total_length;
|
2020-07-29 15:49:16 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Kitsu detail page url
|
2019-12-09 13:13:31 -05:00
|
|
|
*/
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?string $url;
|
2022-03-03 17:26:09 -05:00
|
|
|
}
|