/** * Get storage * * @return \XLite\Module\CDev\FileAttachments\Model\Product\Attachment\Storage */ public function getStorage() { if (!$this->storage) { $this->setStorage(new \XLite\Module\CDev\FileAttachments\Model\Product\Attachment\Storage()); $this->storage->setAttachment($this); } return $this->storage; }