Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/amasty/product-attachment/Model/Report/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/amasty/product-attachment/Model/Report/Item.php
<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Product Attachments Base for Magento 2
 */

namespace Amasty\ProductAttachment\Model\Report;

use Magento\Framework\Model\AbstractModel;

class Item extends AbstractModel
{
    public const ITEM_ID = 'item_id';
    public const FILE_ID = 'file_id';
    public const STORE_ID = 'store_id';
    public const DOWNLOAD_SOURCE = 'download_source';
    public const PRODUCT_ID = 'product_id';
    public const CATEGORY_ID = 'category_id';
    public const ORDER_ID = 'order_id';
    public const CUSTOMER_ID = 'customer_id';
    public const DOWNLOADED_AT = 'downloaded_at';

    public function _construct()
    {
        parent::_construct();
        $this->_init(\Amasty\ProductAttachment\Model\Report\ResourceModel\Item::class);
        $this->setIdFieldName(self::ITEM_ID);
    }

    /**
     * @param int $fileId
     *
     * @return $this
     */
    public function setFileId($fileId)
    {
        return $this->setData(self::FILE_ID, (int)$fileId);
    }

    /**
     * @param int $storeId
     *
     * @return $this
     */
    public function setStoreId($storeId)
    {
        return $this->setData(self::STORE_ID, (int)$storeId);
    }

    /**
     * @param int $sourceId
     *
     * @return $this
     */
    public function setDownloadSource($sourceId)
    {
        return $this->setData(self::DOWNLOAD_SOURCE, (int)$sourceId);
    }

    /**
     * @param int $productId
     *
     * @return $this
     */
    public function setProductId($productId)
    {
        return $this->setData(self::PRODUCT_ID, (int)$productId);
    }

    /**
     * @param int $categoryId
     *
     * @return $this
     */
    public function setCategoryId($categoryId)
    {
        return $this->setData(self::CATEGORY_ID, (int)$categoryId);
    }

    /**
     * @param int $orderId
     *
     * @return $this
     */
    public function setOrderId($orderId)
    {
        return $this->setData(self::ORDER_ID, (int)$orderId);
    }

    /**
     * @param int $customerId
     *
     * @return $this
     */
    public function setCustomerId($customerId)
    {
        return $this->setData(self::CUSTOMER_ID, (int)$customerId);
    }
}

Spamworldpro Mini