id; } public function __toString() { return $this->name; } /** * Set name * * @param string $name * @return Lang */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set code * * @param string $code * @return Lang */ public function setCode($code) { $this->code = $code; return $this; } /** * Get code * * @return string */ public function getCode() { return $this->code; } /** * Set isEnabled * * @param boolean $isEnabled * @return Lang */ public function setIsEnabled($isEnabled) { $this->isEnabled = $isEnabled; return $this; } /** * Get isEnabled * * @return boolean */ public function getIsEnabled() { return $this->isEnabled; } /** * Get isPreferred * * @return boolean */ function getIsPreferred() { return $this->isPreferred; } /** * Set isPreferred * * @param boolean $isPreferred */ function setIsPreferred($isPreferred) { $this->isPreferred = $isPreferred; return $this; } }