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