original_string: protected function checkUserClass()
      {
          $userClass = $this->userClass;
          if (!class_exists($userClass)) {
              throw new Exception('User Class Invalid.');
          }
          if (!((new $userClass()) instanceof User)) {
              throw new Exception('User Class(' . $userClass . ') does not inherited from `\rhosocial\user\User`.');
          }
          return $userClass;
      }
code: protected function checkUserClass()
      {
          $userClass = $this->userClass;
          if (!class_exists($userClass)) {
              throw new Exception('User Class Invalid.');
          }
          if (!((new $userClass()) instanceof User)) {
              throw new Exception('User Class(' . $userClass . ') does not inherited from `\rhosocial\user\User`.');
          }
          return $userClass;
      }
code_tokens: protected function checkUserClass ( ) { $ userClass = $ this -> userClass ; if ( ! class_exists ( $ userClass ) ) { throw new Exception ( 'User Class Invalid.' ) ; } if ( ! ( ( new $ userClass ( ) ) instanceof User ) ) { throw new Exception ( 'User Class(' . $ userClass . ') does not inherited from `\rhosocial\user\User`.' ) ; } return $ userClass ; }
docstring: Check and get valid User.
  @return User
  @throws Exception throw if User is not an instance inherited from `\rhosocial\user\User`.
docstring_tokens: Check and get valid User .