mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
24 lines
415 B
PHP
24 lines
415 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Models;
|
|
|
|
use App\Models\Service\ViewAggregate;
|
|
use Illuminate\Database\Eloquent\Relations\MorphOne;
|
|
|
|
/**
|
|
* Interface HasAggregateViews.
|
|
*
|
|
* @property ViewAggregate|null $viewAggregate
|
|
*/
|
|
interface HasAggregateViews
|
|
{
|
|
/**
|
|
* Get the views count of the model.
|
|
*
|
|
* @return MorphOne
|
|
*/
|
|
public function viewAggregate(): MorphOne;
|
|
}
|