public static function getNameByConstant($constant)
 {
     switch ($constant) {
         case self::NOT_SELECTED:
             return 'notSelected';
             break;
         case self::SOLUTION:
             return 'solution';
             break;
         case self::REVIEW:
             return 'review';
             break;
         default:
             return AssessmentTestSessionState::getNameByConstant($constant);
             break;
     }
 }
 /**
  * Set the current status of the AssessmentTestSession.
  * 
  * @param integer $state A value from the AssessmentTestSessionState enumeration.
  */
 public function setState($state)
 {
     if (in_array($state, AssessmentTestSessionState::asArray()) === true) {
         $this->state = $state;
     } else {
         $msg = "The state argument must be a value from the AssessmentTestSessionState enumeration";
         throw new InvalidArgumentException($msg);
     }
 }