HummingBirdAnimeClient/src/AnimeClient/Types/FormItem.php

35 lines
804 B
PHP
Raw 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
*
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 {
public string|int $id;
public string|int|null $mal_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
}