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