/** * snapshot of the product qty * * @param BaseEntityAbstract $entity * @param string $type * @param string $comments * * @return Product */ public function snapshotQty(BaseEntityAbstract $entity = null, $type = '', $comments = '') { ProductQtyLog::create($this, $type, $entity, trim($comments)); return $this; }