mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-26 22:36:37 +02:00
20 lines
328 B
PHP
20 lines
328 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Attributes;
|
|
|
|
use Attribute;
|
|
|
|
#[Attribute(Attribute::TARGET_CLASS)]
|
|
class UseFieldDirective
|
|
{
|
|
/**
|
|
* @param class-string $fieldClass
|
|
*/
|
|
public function __construct(
|
|
public string $fieldClass,
|
|
public string $method = '__invoke',
|
|
) {}
|
|
}
|