mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 11:45:00 +02:00
29 lines
504 B
PHP
29 lines
504 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Events;
|
|
|
|
use App\Contracts\Models\HasHashids;
|
|
use App\Models\BaseModel;
|
|
|
|
/**
|
|
* Interface AssignHashidsEvent.
|
|
*/
|
|
interface AssignHashidsEvent
|
|
{
|
|
/**
|
|
* Get the model that has fired this event.
|
|
*
|
|
* @return HasHashids&BaseModel
|
|
*/
|
|
public function getModel(): HasHashids&BaseModel;
|
|
|
|
/**
|
|
* Get the Hashids connection.
|
|
*
|
|
* @return string|null
|
|
*/
|
|
public function getHashidsConnection(): ?string;
|
|
}
|