20 lines
440 B
PHP
20 lines
440 B
PHP
<?php
|
|
|
|
namespace App\Event;
|
|
|
|
use App\Entity\TrainingAttendance;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class TrainingAttendanceDeletedEvent extends Event
|
|
{
|
|
public const NAME = 'training_attendance.deleted';
|
|
|
|
public function __construct(private readonly TrainingAttendance $trainingAttendance)
|
|
{
|
|
}
|
|
|
|
public function getTrainingAttendance(): TrainingAttendance
|
|
{
|
|
return $this->trainingAttendance;
|
|
}
|
|
} |