Files
animethemes-server/app/Events/List/ExternalProfile/ExternalProfileCreated.php
T
2024-07-01 23:46:37 -03:00

47 lines
977 B
PHP

<?php
declare(strict_types=1);
namespace App\Events\List\ExternalProfile;
use App\Events\Base\List\ListCreatedEvent;
use App\Models\List\ExternalProfile;
/**
* Class ExternalProfileCreated.
*
* @extends ListCreatedEvent<ExternalProfile>
*/
class ExternalProfileCreated extends ListCreatedEvent
{
/**
* Create a new event instance.
*
* @param ExternalProfile $profile
*/
public function __construct(ExternalProfile $profile)
{
parent::__construct($profile);
}
/**
* Get the model that has fired this event.
*
* @return ExternalProfile
*/
public function getModel(): ExternalProfile
{
return $this->model;
}
/**
* Get the description for the Discord message payload.
*
* @return string
*/
protected function getDiscordMessageDescription(): string
{
return "External Profile '**{$this->getModel()->getName()}**' has been created.";
}
}