Files
animethemes-server/app/GraphQL/Definition/Fields/Base/UpdatedAtField.php
T

33 lines
594 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Definition\Fields\Base;
use App\GraphQL\Definition\Fields\DateTimeTzField;
use App\Models\BaseModel;
/**
* Class UpdatedAtField.
*/
class UpdatedAtField extends DateTimeTzField
{
/**
* Create a new field instance.
*/
public function __construct()
{
parent::__construct(BaseModel::ATTRIBUTE_UPDATED_AT);
}
/**
* The description of the field.
*
* @return string
*/
public function description(): string
{
return 'The date that the resource was updated';
}
}