status = 'complete'; return $quote->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the verify action. * * @param Quote $quote * * @return Quote */public function verify(Quote $quote) { try { $quote->status = 'verify'; return $quote->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the approve action. * * @param Quote $quote * * @return Quote */public function approve(Quote $quote) { try { $quote->status = 'approve'; return $quote->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the publish action. * * @param Quote $quote * * @return Quote */public function publish(Quote $quote) { try { $quote->status = 'publish'; return $quote->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the archive action. * * @param Quote $quote * * @return Quote */ public function archive(Quote $quote) { try { $quote->status = 'archive'; return $quote->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } /** * Perform the unpublish action. * * @param Quote $quote * * @return Quote */ public function unpublish(Quote $quote) { try { $quote->status = 'unpublish'; return $quote->save(); } catch (Exception $e) { throw new WorkflowActionNotPerformedException(); } } }