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