mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-30 08:06:55 +02:00
21 lines
436 B
PHP
21 lines
436 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Support\Argument;
|
|
|
|
use App\Contracts\GraphQL\Fields\RouteableField;
|
|
use App\GraphQL\Definition\Fields\Field;
|
|
|
|
class RouteableArgument extends Argument
|
|
{
|
|
public function __construct(
|
|
Field&RouteableField $field,
|
|
bool $shouldRequire = true,
|
|
) {
|
|
parent::__construct($field->getName(), $field->type());
|
|
|
|
$this->required($shouldRequire);
|
|
}
|
|
}
|