title = $title; $this->description = $description; $this->descriptionPlain = $descriptionPlain; $this->language = $language; } /** * Get id * * @return int * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * Set template. * * @param int $template Surveys id * * @return void * * @since 1.0.0 */ public function setSurvey(int $template) : void { $this->template = $template; } /** * Get template * * @return int * * @since 1.0.0 */ public function getSurvey() : int { return $this->template; } /** * Get language * * @return string * * @since 1.0.0 */ public function getLanguage() : string { return $this->language; } /** * Set language * * @param string $language Language * * @return void * * @since 1.0.0 */ public function setLanguage(string $language) : void { $this->language = $language; } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'title' => $this->title, 'description' => $this->description, 'template' => $this->template, 'language' => $this->language, ]; } /** * {@inheritdoc} */ public function jsonSerialize() { return $this->toArray(); } }