mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-24 19:49:24 +02:00
24 lines
417 B
PHP
24 lines
417 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Models;
|
|
|
|
use App\Models\Aggregate\LikeAggregate;
|
|
use Illuminate\Database\Eloquent\Relations\MorphOne;
|
|
|
|
/**
|
|
* Interface HasAggregateLikes.
|
|
*
|
|
* @property LikeAggregate|null $likeAggregate
|
|
*/
|
|
interface HasAggregateLikes
|
|
{
|
|
/**
|
|
* Get the likes count of the model.
|
|
*
|
|
* @return MorphOne
|
|
*/
|
|
public function likeAggregate(): MorphOne;
|
|
}
|