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