From cf8fb56d2d0c5f45666c16af61807e65766f04e1 Mon Sep 17 00:00:00 2001 From: tracer Date: Sat, 12 Feb 2022 19:30:25 +0100 Subject: [PATCH] removed ip added content Signed-off-by: tracer --- src/Entity/Domain.php | 90 ++++++++++++++----------------------------- 1 file changed, 28 insertions(+), 62 deletions(-) diff --git a/src/Entity/Domain.php b/src/Entity/Domain.php index f50a0ec..1c161bb 100644 --- a/src/Entity/Domain.php +++ b/src/Entity/Domain.php @@ -2,41 +2,38 @@ namespace App\Entity; + +use App\Enums\PanelType; + + /** * */ class Domain { - private int $id; - private int $panelID; - private String $name; - private String $a; - private String $aaaa; - public function __construct(String $name, int $id = 0, int $panelID = 0, String $a = '', String $aaaa = '') + /** + */ + public function __construct(private string $name, private int $id = 0, private string $content = '') + {} + + + /** + * @return String + */ + public function getName(): string + { + return $this->name; + } + + /** + * @param String $name + */ + public function setName(string $name): void { - $this->id = $id; - $this->panelID = $panelID; $this->name = $name; - $this->a = $a; - $this->aaaa = $aaaa; } - /** - * @return String - */ - public function getA(): string - { - return $this->a; - } - - /** - * @return String - */ - public function getAaaa(): string - { - return $this->aaaa; - } /** * @return int @@ -55,51 +52,20 @@ class Domain } /** - * @return String + * @return string */ - public function getName(): string + public function getContent(): string { - return $this->name; + return $this->content; } /** - * @return int + * @param string $content */ - public function getPanelID(): int + public function setContent(string $content): void { - return $this->panelID; + $this->content = $content; } - /** - * @param int $panelID - */ - public function setPanelID(int $panelID): void - { - $this->panelID = $panelID; - } - - /** - * @param String $name - */ - public function setName(string $name): void - { - $this->name = $name; - } - - /** - * @param String $a - */ - public function setA(string $a): void - { - $this->a = $a; - } - - /** - * @param String $aaaa - */ - public function setAaaa(string $aaaa): void - { - $this->aaaa = $aaaa; - } } \ No newline at end of file