public function launch() { $textMasterAPI = new TextMasterAPI(); $result = $textMasterAPI->launchProject($this->id_project_api); if (!is_array($result)) { return $result; } // error $this->status = $result['status']; return parent::update(); }