/** * Get state commands for this task * @return State */ public function state() { $state = new State($this->repository->getApiClient()); $state->setContext($this->getContext()); return $state; }