62 lines
1.2 KiB
PHP
62 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Model;
|
|
|
|
use App\Entity\Upload;
|
|
|
|
class DocumentCheckDto
|
|
{
|
|
private Upload $upload;
|
|
private ?string $status = null;
|
|
private ?string $comment;
|
|
private ?string $specialAgreements;
|
|
|
|
public function __construct(Upload $upload)
|
|
{
|
|
$this->upload = $upload;
|
|
$this->comment = $upload->getComment();
|
|
$this->specialAgreements = $upload->getDisposition()?->getSpecialAgreements();
|
|
}
|
|
|
|
public function getUpload(): Upload
|
|
{
|
|
return $this->upload;
|
|
}
|
|
|
|
public function getStatus(): string
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
public function setStatus(string $status): static
|
|
{
|
|
$this->status = $status;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getComment(): ?string
|
|
{
|
|
return $this->comment;
|
|
}
|
|
|
|
public function setComment(?string $comment): static
|
|
{
|
|
$this->comment = $comment;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getSpecialAgreements(): ?string
|
|
{
|
|
return $this->specialAgreements;
|
|
}
|
|
|
|
public function setSpecialAgreements(?string $specialAgreements): static
|
|
{
|
|
$this->specialAgreements = $specialAgreements;
|
|
|
|
return $this;
|
|
}
|
|
}
|