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