mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-25 08:14:29 +02:00
21 lines
342 B
PHP
21 lines
342 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Inputs;
|
|
|
|
use Rebing\GraphQL\Support\InputType;
|
|
|
|
abstract class Input extends InputType
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->attributes['name'] = $this->getName();
|
|
}
|
|
|
|
public function getName(): string
|
|
{
|
|
return class_basename($this);
|
|
}
|
|
}
|