WIP: Refactor application rejecting process
This commit is contained in:
1 parent
40d4edbf96
commit
d42da03a8f
5 files changed
+75
-2
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Event;
|
||||
|
||||
use App\Entity\Application;
|
||||
use App\Model\ApplicationCheckDto;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
class ApplicationRejectedEvent extends Event
|
||||
{
|
||||
public const NAME = 'application.rejected';
|
||||
|
||||
private Application $application;
|
||||
private ?string $comment;
|
||||
|
||||
public function __construct(ApplicationCheckDto $applicationCheckDto)
|
||||
{
|
||||
$this->application = $applicationCheckDto->getApplication();
|
||||
$this->comment = $applicationCheckDto->getComment();
|
||||
}
|
||||
|
||||
public function getApplication(): Application
|
||||
{
|
||||
return $this->application;
|
||||
}
|
||||
|
||||
public function getComment(): ?string
|
||||
{
|
||||
return $this->comment;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user