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