21 lines
384 B
PHP
21 lines
384 B
PHP
<?php
|
|
|
|
namespace App\Event;
|
|
|
|
use App\Entity\Application;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class ApplicationDeletedEvent extends Event
|
|
{
|
|
public const NAME = 'application.deleted';
|
|
|
|
public function __construct(private readonly Application $application)
|
|
{
|
|
}
|
|
|
|
public function getApplication(): Application
|
|
{
|
|
return $this->application;
|
|
}
|
|
}
|