32 lines
703 B
PHP
32 lines
703 B
PHP
<?php
|
|
|
|
namespace App\Event;
|
|
|
|
use App\Entity\Application;
|
|
use App\Model\ApplicationStatusDto;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class ApplicationStatusEvent extends Event
|
|
{
|
|
public const NAME = 'application.status';
|
|
|
|
private Application $application;
|
|
private ?string $comment;
|
|
|
|
public function __construct(ApplicationStatusDto $applicationCheckDto)
|
|
{
|
|
$this->application = $applicationCheckDto->getApplication();
|
|
$this->comment = $applicationCheckDto->getComment();
|
|
}
|
|
|
|
public function getApplication(): Application
|
|
{
|
|
return $this->application;
|
|
}
|
|
|
|
public function getComment(): ?string
|
|
{
|
|
return $this->comment;
|
|
}
|
|
}
|