Feat: Implement disposition document handling for admins
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user