public function getName() { foreach (SurveyStatus::toArray() as $key => $val) { if ($this->value == $val) { return $key; } } return $this->getValue(); }