2018-11-08 11:36:42 -05:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
* Hummingbird Anime List Client
|
|
|
|
*
|
|
|
|
* An API client for Kitsu to manage anime and manga watch lists
|
|
|
|
*
|
2023-07-13 11:08:05 -04:00
|
|
|
* PHP version 8.1
|
2018-11-08 11:36:42 -05:00
|
|
|
*
|
2023-07-13 11:08:05 -04:00
|
|
|
* @copyright 2015 - 2023 Timothy J. Warren <tim@timshome.page>
|
2018-11-08 11:36:42 -05:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
2020-12-10 17:06:50 -05:00
|
|
|
* @version 5.2
|
2023-07-13 11:08:05 -04:00
|
|
|
* @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
|
2018-11-08 11:36:42 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Aviat\AnimeClient\Types;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Type representing a character for display
|
|
|
|
*/
|
2022-03-03 17:26:09 -05:00
|
|
|
final class Character extends AbstractType
|
|
|
|
{
|
2020-04-28 12:24:12 -04:00
|
|
|
public array $castings = [];
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?string $description;
|
2021-02-10 17:17:51 -05:00
|
|
|
public string $id;
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?Media $media;
|
2022-01-17 08:37:00 -05:00
|
|
|
public string $image;
|
2022-03-03 13:52:06 -05:00
|
|
|
public ?string $name;
|
2020-04-28 12:24:12 -04:00
|
|
|
public array $names = [];
|
|
|
|
public array $otherNames = [];
|
2018-11-08 11:36:42 -05:00
|
|
|
|
2022-03-03 17:26:09 -05:00
|
|
|
public function setMedia(mixed $media): void
|
2018-11-08 11:36:42 -05:00
|
|
|
{
|
2020-04-22 07:53:52 -04:00
|
|
|
$this->media = Media::from($media);
|
2018-11-08 11:36:42 -05:00
|
|
|
}
|
2022-03-03 17:26:09 -05:00
|
|
|
}
|