WIP: Implement profile editing
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
class AjaxModalResponseDto
|
||||
{
|
||||
private string $content;
|
||||
private string $redirect;
|
||||
private bool $close = false;
|
||||
|
||||
public function getContent(): ?string
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
public function setContent(string $content): self
|
||||
{
|
||||
$this->content = $content;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRedirect(): ?string
|
||||
{
|
||||
return $this->redirect;
|
||||
}
|
||||
|
||||
public function setRedirect(string $redirect): self
|
||||
{
|
||||
$this->redirect = $redirect;
|
||||
$this->close = false;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setCloseAndRedirect(string $redirect): self
|
||||
{
|
||||
$this->redirect = $redirect;
|
||||
$this->close = true;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isClose(): bool
|
||||
{
|
||||
return $this->close;
|
||||
}
|
||||
|
||||
public function setClose(bool $close): void
|
||||
{
|
||||
$this->close = $close;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user