mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-20 17:49:20 +02:00
26 lines
478 B
PHP
26 lines
478 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Api\Field\Wiki\Video;
|
|
|
|
use App\Http\Api\Field\Aggregate\CountField;
|
|
use App\Http\Api\Schema\Schema;
|
|
use App\Models\Wiki\Video;
|
|
|
|
/**
|
|
* Class VideoViewCountField.
|
|
*/
|
|
class VideoViewCountField extends CountField
|
|
{
|
|
/**
|
|
* Create a new field instance.
|
|
*
|
|
* @param Schema $schema
|
|
*/
|
|
public function __construct(Schema $schema)
|
|
{
|
|
parent::__construct($schema, Video::RELATION_VIEWS);
|
|
}
|
|
}
|