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