Feat: Implement disposition document handling for admins

This commit is contained in:
Björn Fromme
2023-10-13 17:20:13 +02:00
parent 789249cba7
commit 194cd4e59d
12 changed files with 282 additions and 39 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Event;
use App\Entity\Upload;
use App\Model\DocumentCheckDto;
use Symfony\Contracts\EventDispatcher\Event;
class DocumentRejectedEvent extends Event
{
public const NAME = 'document.rejected';
private Upload $document;
private ?string $comment;
public function __construct(DocumentCheckDto $documentCheckDto)
{
$this->document = $documentCheckDto->getUpload();
$this->comment = $documentCheckDto->getComment();
}
public function getDocument(): Upload
{
return $this->document;
}
public function getComment(): ?string
{
return $this->comment;
}
}