/**
  * 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);
     }
 }
 public static function asArray()
 {
     return array_merge(AssessmentTestSessionState::asArray(), array('NOT_SELECTED' => self::NOT_SELECTED, 'SOLUTION' => self::SOLUTION, 'REVIEW' => self::REVIEW));
 }