Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 8f0f009b authored by Nicolas's avatar Nicolas
Browse files

Correction de 2 méthodes

parent b623b7c7
No related branches found
No related tags found
No related merge requests found
...@@ -87,23 +87,23 @@ class CategoryWidget extends AbstractModel implements CategoryWidgetInterface, I ...@@ -87,23 +87,23 @@ class CategoryWidget extends AbstractModel implements CategoryWidgetInterface, I
} }
/** /**
* Retrieve category widget identifier * Retrieve category widget title
* *
* @return string * @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 * @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 ...@@ -158,25 +158,25 @@ class CategoryWidget extends AbstractModel implements CategoryWidgetInterface, I
} }
/** /**
* Set path * Set Title
* *
* @param string $identifier * @param string $title
* @return CategoryWidgetInterface * @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 * @return CategoryWidgetInterface
*/ */
public function setName($name) public function setIdentifier($identifier)
{ {
return $this->setData(self::NAME, $name); return $this->setData(self::IDENTIFIER, $identifier);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment