public function getStatus() { if ($this->isPending()) { return 'pending'; } if ($this->isRunning()) { return 'running'; } if ($this->isSucceeded()) { return 'succeeded'; } if ($this->isFailed()) { return 'failed'; } }