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