post = $post; $this->command = $hooks->wrap($command); $this->query = $hooks->wrap($query); } public function execute( $id ) { $model = $this->query->findById( $id ); $this->command->delete( $model ); $return = array( array('admin/employees', array('status' => 'archive')), '__Employee Deleted__' ); return $return; } }