public function Job::setStatus in Apigee Edge 8
Sets the status of the job.
Parameters
int $status: The job's status.
File
- src/
Job/ Job.php, line 183
Class
- Job
- Defines the Job class.
Namespace
Drupal\apigee_edge\JobCode
public function setStatus(int $status) {
if (!in_array($status, self::ALL_STATUSES)) {
throw new \LogicException('Invalid status');
}
$this->status = $status;
}