From 8f0f009ba1c82e347aabfcaae0d4416137562e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20B=C3=A9jean?= <nicolas@bejean.eu> Date: Fri, 8 May 2020 17:48:51 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20de=202=20m=C3=A9thodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Model/CategoryWidget.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Model/CategoryWidget.php b/Model/CategoryWidget.php index 4a65b23..63224bf 100755 --- a/Model/CategoryWidget.php +++ b/Model/CategoryWidget.php @@ -87,23 +87,23 @@ class CategoryWidget extends AbstractModel implements CategoryWidgetInterface, I } /** - * Retrieve category widget identifier + * Retrieve category widget title * * @return string */ - public function getIdentifier() + public function getTitle() { - return (string)$this->getData(self::IDENTIFIER); + return $this->getData(self::TITLE); } /** - * Retrieve category widget name + * Retrieve category widget identifier * * @return string */ - public function getName() + public function getIdentifier() { - return $this->getData(self::NAME); + return (string)$this->getData(self::IDENTIFIER); } /** @@ -158,25 +158,25 @@ class CategoryWidget extends AbstractModel implements CategoryWidgetInterface, I } /** - * Set path + * Set Title * - * @param string $identifier + * @param string $title * @return CategoryWidgetInterface */ - public function setIdentifier($identifier) + public function setName($title) { - return $this->setData(self::IDENTIFIER, $identifier); + return $this->setData(self::TITLE, $title); } /** - * Set Name + * Set path * - * @param string $name + * @param string $identifier * @return CategoryWidgetInterface */ - public function setName($name) + public function setIdentifier($identifier) { - return $this->setData(self::NAME, $name); + return $this->setData(self::IDENTIFIER, $identifier); } /** -- GitLab