63 lines
1.2 KiB
PHP
63 lines
1.2 KiB
PHP
<?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;
|
|
}
|
|
}
|