2023-03-16 13:03:48 -04: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
|
2023-03-16 13:03:48 -04:00
|
|
|
*
|
2023-07-13 11:08:05 -04:00
|
|
|
* @copyright 2015 - 2023 Timothy J. Warren <tim@timshome.page>
|
2023-03-16 13:03:48 -04:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @version 5.2
|
2023-07-13 11:08:05 -04:00
|
|
|
* @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
|
2023-03-16 13:03:48 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Aviat\Ion\Attribute;
|
|
|
|
|
|
|
|
use Attribute;
|
|
|
|
|
|
|
|
#[Attribute(Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
|
2023-05-09 12:46:52 -04:00
|
|
|
class Route
|
|
|
|
{
|
2023-05-19 10:54:08 -04:00
|
|
|
final public const GET = 'get';
|
|
|
|
final public const POST = 'post';
|
2023-03-16 13:03:48 -04:00
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
public string $name,
|
|
|
|
public string $path,
|
|
|
|
public string $verb = self::GET,
|
2023-05-09 12:46:52 -04:00
|
|
|
) {
|
2023-03-16 13:03:48 -04:00
|
|
|
}
|
|
|
|
}
|