From ebbd7300e742edcda7e0cfe8f3cf9ff50af0a784 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 3 Jan 2025 12:03:10 +0100 Subject: [PATCH] use constants for tag --- src/Entities/Tag.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Entities/Tag.php b/src/Entities/Tag.php index 6861827..7b2c651 100644 --- a/src/Entities/Tag.php +++ b/src/Entities/Tag.php @@ -31,29 +31,29 @@ class Tag extends ArrayCollection public function getId(): string { - return $this->get('tagid'); + return $this->get(TagEndpoint::ID); } public function getName(): string { - return $this->get('name'); + return $this->get(TagEndpoint::NAME); } public function setName(string $name): void { - $this->set('name', $name); + $this->set(TagEndpoint::NAME, $name); // use persist method to send to Klicktipp } public function getText(): string { - return $this->get('text'); + return $this->get(TagEndpoint::TEXT); } public function setText(string $text): void { - $this->set('text', $text); + $this->set(TagEndpoint::TEXT, $text); // use persist method to send to Klicktipp }