HummingBirdAnimeClient/src/AnimeClient/Types/Anime.php

71 lines
1.3 KiB
PHP
Raw Normal View History

<?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
*
2021-02-04 11:57:01 -05:00
* PHP version 8
*
* @package HummingbirdAnimeClient
* @author Timothy J. Warren <tim@timshomepage.net>
2021-01-13 01:52:03 -05:00
* @copyright 2015 - 2021 Timothy J. Warren
* @license http://www.opensource.org/licenses/mit-license.html MIT License
2020-12-10 17:06:50 -05:00
* @version 5.2
* @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;
/**
* Type representing an anime within a watch list
*/
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
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;
}