Task: Misc adjustments
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
use App\Entity\Application;
|
||||
|
||||
class ApplicationStatusDto
|
||||
{
|
||||
private Application $application;
|
||||
private string $status;
|
||||
private ?string $comment;
|
||||
private bool $commentVisible;
|
||||
|
||||
public function __construct(Application $application)
|
||||
{
|
||||
$this->application = $application;
|
||||
$this->status = $application->getStatus();
|
||||
$this->comment = $application->getComment();
|
||||
$this->commentVisible = $application->isCommentVisible();
|
||||
}
|
||||
|
||||
public function getApplication(): Application
|
||||
{
|
||||
return $this->application;
|
||||
}
|
||||
|
||||
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 isCommentVisible(): bool
|
||||
{
|
||||
return $this->commentVisible;
|
||||
}
|
||||
|
||||
public function setCommentVisible(bool $commentVisible): static
|
||||
{
|
||||
$this->commentVisible = $commentVisible;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user