HummingBirdAnimeClient/src/AnimeClient/Types/Character.php

36 lines
847 B
PHP
Raw Normal View History

<?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
*
2023-07-13 11:08:05 -04:00
* @copyright 2015 - 2023 Timothy J. Warren <tim@timshome.page>
* @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
*/
namespace Aviat\AnimeClient\Types;
/**
* Type representing a character for display
*/
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;
public string $id;
2022-03-03 13:52:06 -05:00
public ?Media $media;
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 = [];
public function setMedia(mixed $media): void
{
$this->media = Media::from($media);
}
}