From 1369cab7fb6beff5c64aeb6b717226430bc8f3b3 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 22 Feb 2022 14:06:07 +0100 Subject: [PATCH] changed from content to panel Signed-off-by: tracer --- src/Entity/Domain.php | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/Entity/Domain.php b/src/Entity/Domain.php index 1c161bb..81ad970 100644 --- a/src/Entity/Domain.php +++ b/src/Entity/Domain.php @@ -14,9 +14,25 @@ class Domain /** */ - public function __construct(private string $name, private int $id = 0, private string $content = '') + public function __construct(private string $name, private String $panel, private int $id = 0) {} + /** + * @return String + */ + public function getPanel(): string + { + return $this->panel; + } + + /** + * @param String $panel + */ + public function setPanel(string $panel): void + { + $this->panel = $panel; + } + /** * @return String @@ -51,21 +67,4 @@ class Domain $this->id = $id; } - /** - * @return string - */ - public function getContent(): string - { - return $this->content; - } - - /** - * @param string $content - */ - public function setContent(string $content): void - { - $this->content = $content; - } - - } \ No newline at end of file