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
|
|
|
*
|
2021-02-04 11:57:01 -05:00
|
|
|
* PHP version 8
|
2018-08-08 13:05:38 -04:00
|
|
|
*
|
|
|
|
* @package HummingbirdAnimeClient
|
|
|
|
* @author Timothy J. Warren <tim@timshomepage.net>
|
2021-01-13 01:52:03 -05:00
|
|
|
* @copyright 2015 - 2021 Timothy J. Warren
|
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
|
2018-08-08 13:05:38 -04:00
|
|
|
* @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Aviat\AnimeClient\Types;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Type representing an Anime object for display
|
|
|
|
*/
|
2018-09-27 16:45:12 -04:00
|
|
|
class FormItem extends AbstractType {
|
2021-02-10 17:17:51 -05:00
|
|
|
public string|int $id;
|
2019-12-09 13:40:54 -05:00
|
|
|
|
2021-02-10 17:17:51 -05:00
|
|
|
public string|int|null $mal_id;
|
2019-12-09 13:40:54 -05:00
|
|
|
|
2022-03-03 13:25:10 -05:00
|
|
|
public ?FormItemData $data = null;
|
2018-08-09 11:34:02 -04:00
|
|
|
|
2021-02-10 17:17:51 -05:00
|
|
|
public function setData(mixed $value): void
|
2018-09-27 16:45:12 -04:00
|
|
|
{
|
2020-04-22 07:53:52 -04:00
|
|
|
$this->data = FormItemData::from($value);
|
2018-09-27 16:45:12 -04:00
|
|
|
}
|
2018-08-08 13:05:38 -04:00
|
|
|
}
|
|
|
|
|