mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
22 lines
465 B
PHP
22 lines
465 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Fields\Wiki\Video;
|
|
|
|
use App\GraphQL\Schema\Fields\Base\CountAggregateField;
|
|
use App\Models\Wiki\Video;
|
|
|
|
class VideoLikesCountField extends CountAggregateField
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct(Video::RELATION_LIKE_AGGREGATE, 'likesCount');
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'The number of likes recorded for the resource';
|
|
}
|
|
}
|