Files
animethemes-server/app/GraphQL/Definition/Fields/Wiki/Image/ImageLinkField.php
T

33 lines
601 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Definition\Fields\Wiki\Image;
use App\GraphQL\Definition\Fields\StringField;
use App\Models\Wiki\Image;
/**
* Class ImageLinkField.
*/
class ImageLinkField extends StringField
{
/**
* Create a new field instance.
*/
public function __construct()
{
parent::__construct(Image::ATTRIBUTE_LINK, nullable: false);
}
/**
* The description of the field.
*
* @return string
*/
public function description(): string
{
return 'The URL to stream the file from storage';
}
}