Files
animethemes-server/app/Contracts/Models/HasAggregateViews.php
T
2025-05-12 02:07:27 -03:00

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;
}