From 9840fb50ff9ad845d43c897ceb998d84b486a7dd Mon Sep 17 00:00:00 2001 From: tracer Date: Sat, 17 Sep 2022 16:29:23 +0200 Subject: [PATCH] added logger --- src/Entity/Panel.php | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/Entity/Panel.php b/src/Entity/Panel.php index ffed328..6c84f8e 100644 --- a/src/Entity/Panel.php +++ b/src/Entity/Panel.php @@ -12,14 +12,40 @@ class Panel private String $a; private String $aaaa; private String $apikey; + private int $self; - public function __construct(String $name, int $id = 0, String $a = '', String $aaaa = '', String $apikey = '') + /** + * @param String $name + * @param int $id + * @param String $a + * @param String $aaaa + * @param String $apikey + * @param int $self + */ + public function __construct(String $name, int $id = 0, String $a = '', String $aaaa = '', String $apikey = '', int $self = 0) { $this->id = $id; $this->name = $name; $this->a = $a; $this->aaaa = $aaaa; $this->apikey = $apikey; + $this->self = $self; + } + + /** + * @return int + */ + public function getSelf(): int + { + return $this->self; + } + + /** + * @param int $self + */ + public function setSelf(int $self): void + { + $this->self = $self; } @@ -105,4 +131,4 @@ class Panel $this->aaaa = $aaaa; } -} \ No newline at end of file +}