* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ namespace PrestaShop\ModuleLibFaq; class Parameters { /** * Module key to identify on which module we will retrieve the faq * * @var string */ private $moduleKey; /** * The version of PrestaShop * * @var string */ private $psVersion; /** * In which language the faq will be retrieved * * @var string */ private $isoCode; /** * Generate the route to retrieve the faq * * @return string route */ public function getFaqUri() { return $this->getModuleKey() . '/' . $this->getPsVersion() . '/' . $this->getIsoCode(); } /** * @param string $moduleKey * * @return self */ public function setModuleKey($moduleKey) { $this->moduleKey = $moduleKey; return $this; } /** * @param string $psVersion * * @return self */ public function setPsVersion($psVersion) { $this->psVersion = $psVersion; return $this; } /** * @param string $isoCode * * @return self */ public function setIsoCode($isoCode) { $this->isoCode = $isoCode; return $this; } /** * @return string */ public function getIsoCode() { return $this->isoCode; } /** * @return string */ public function getPsVersion() { return $this->psVersion; } /** * @return string */ public function getModuleKey() { return $this->moduleKey; } }