original_string: public function status_type() {
  		$status_code_type = (!empty($this->statuscode))
  			? (int)mb_substr($this->statuscode, 0, 1)
  			: 0;
  
  		if ($status_code_type === 1) {
  			$status_type = 'informational';
  		} elseif ($status_code_type === 2) {
  			$status_type = 'success';
  		} elseif ($status_code_type === 3) {
  			$status_type = 'redirect';
  		} elseif ($status_code_type === 4) {
  			$status_type = 'client_err';
  		} elseif ($status_code_type === 5) {
  			$status_type = 'server_err';
  		} else {
  			$status_type = 'bad';
  		}
  		return $status_type;
  	}
code: public function status_type() {
  		$status_code_type = (!empty($this->statuscode))
  			? (int)mb_substr($this->statuscode, 0, 1)
  			: 0;
  
  		if ($status_code_type === 1) {
  			$status_type = 'informational';
  		} elseif ($status_code_type === 2) {
  			$status_type = 'success';
  		} elseif ($status_code_type === 3) {
  			$status_type = 'redirect';
  		} elseif ($status_code_type === 4) {
  			$status_type = 'client_err';
  		} elseif ($status_code_type === 5) {
  			$status_type = 'server_err';
  		} else {
  			$status_type = 'bad';
  		}
  		return $status_type;
  	}
code_tokens: public function status_type ( ) { $ status_code_type = ( ! empty ( $ this -> statuscode ) ) ? ( int ) mb_substr ( $ this -> statuscode , 0 , 1 ) : 0 ; if ( $ status_code_type === 1 ) { $ status_type = 'informational' ; } elseif ( $ status_code_type === 2 ) { $ status_type = 'success' ; } elseif ( $ status_code_type === 3 ) { $ status_type = 'redirect' ; } elseif ( $ status_code_type === 4 ) { $ status_type = 'client_err' ; } elseif ( $ status_code_type === 5 ) { $ status_type = 'server_err' ; } else { $ status_type = 'bad' ; } return $ status_type ; }
docstring: Get the status type.
  
  @return string The status type.
docstring_tokens: Get the status type .