HummingBirdAnimeClient/src/AnimeClient/Types/FormItem.php

32 lines
764 B
PHP
Raw Permalink Normal View History

2018-08-08 13:05:38 -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 13:05:38 -04:00
*
2023-07-13 11:08:05 -04:00
* PHP version 8.1
2018-08-08 13:05:38 -04:00
*
2023-07-13 11:08:05 -04:00
* @copyright 2015 - 2023 Timothy J. Warren <tim@timshome.page>
2018-08-08 13:05:38 -04: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-08-08 13:05:38 -04:00
*/
namespace Aviat\AnimeClient\Types;
/**
* Type representing an Anime object for display
*/
class FormItem extends AbstractType
{
public string|int $id;
public string|int|NULL $mal_id;
2022-09-22 10:21:09 -04:00
public string|int|NULL $anilist_id;
2022-03-03 13:52:06 -05:00
public ?FormItemData $data;
public function setData(mixed $value): void
2018-09-27 16:45:12 -04:00
{
$this->data = FormItemData::from($value);
2018-09-27 16:45:12 -04:00
}
2018-08-08 13:05:38 -04:00
}