/** * @param Snapshot $snapshot */ public function delete(Snapshot $snapshot) { $snapshot->setDeleted(); $this->save($snapshot); }