Returns the state of the job. Can be one of the job state constants.
int The state of the job or NULL if it hasn't been set yet.
public function getState();