Files
myep-team/src/Event/TrainingAttendanceCreatedEvent.php
T
2025-08-21 14:20:43 +02:00

21 lines
441 B
PHP

<?php
namespace App\Event;
use App\Entity\TrainingAttendance;
use Symfony\Contracts\EventDispatcher\Event;
class TrainingAttendanceCreatedEvent extends Event
{
public const NAME = 'training_attendance.created';
public function __construct(private readonly TrainingAttendance $trainingAttendance)
{
}
public function getTrainingAttendance(): TrainingAttendance
{
return $this->trainingAttendance;
}
}