Files
animethemes-server/app/GraphQL/Definition/Fields/Admin/Dump/DumpPathField.php
T

43 lines
751 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Definition\Fields\Admin\Dump;
use App\GraphQL\Definition\Fields\StringField;
use App\Models\Admin\Dump;
/**
* Class DumpPathField.
*/
class DumpPathField extends StringField
{
/**
* Create a new field instance.
*/
public function __construct()
{
parent::__construct(Dump::ATTRIBUTE_PATH, nullable: false);
}
/**
* The description of the field.
*
* @return string
*/
public function description(): string
{
return 'The path of the file in storage';
}
/**
* Determine if the field is nullable.
*
* @return bool
*/
protected function nullable(): bool
{
return false;
}
}