This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,280 @@
<?php
namespace Stemcell\ProductImport\Model\Data;
use Stemcell\ProductImport\Api\Data\CmsPageDataInterface;
use Magento\Framework\Api\AbstractSimpleObject;
class CmsPageData extends AbstractSimpleObject implements CmsPageDataInterface
{
/**
* @inheritdoc
*/
public function getTitle()
{
return $this->_get('title');
}
/**
* @inheritdoc
*/
public function setTitle($title)
{
return $this->setData('title', $title);
}
/**
* @inheritdoc
*/
public function getPageLayout()
{
return $this->_get('page_layout');
}
/**
* @inheritdoc
*/
public function setPageLayout($pageLayout)
{
return $this->setData('page_layout', $pageLayout);
}
/**
* @inheritdoc
*/
public function getMetaKeywords()
{
return $this->_get('meta_keywords');
}
/**
* @inheritdoc
*/
public function setMetaKeywords($metaKeywords)
{
return $this->setData('meta_keywords', $metaKeywords);
}
/**
* @inheritdoc
*/
public function getMetaDescription()
{
return $this->_get('meta_description');
}
/**
* @inheritdoc
*/
public function setMetaDescription($metaDescription)
{
return $this->setData('meta_description', $metaDescription);
}
/**
* @inheritdoc
*/
public function getIdentifier()
{
return $this->_get('identifier');
}
/**
* @inheritdoc
*/
public function setIdentifier($identifier)
{
return $this->setData('identifier', $identifier);
}
/**
* @inheritdoc
*/
public function getContentHeading()
{
return $this->_get('content_heading');
}
/**
* @inheritdoc
*/
public function setContentHeading($contentHeading)
{
return $this->setData('content_heading', $contentHeading);
}
/**
* @inheritdoc
*/
public function getContent()
{
return $this->_get('content');
}
/**
* @inheritdoc
*/
public function setContent($content)
{
return $this->setData('content', $content);
}
/**
* @inheritdoc
*/
public function getIsActive()
{
return $this->_get('is_active');
}
/**
* @inheritdoc
*/
public function setIsActive($isActive)
{
return $this->setData('is_active', $isActive);
}
/**
* @inheritdoc
*/
public function getSortOrder()
{
return $this->_get('sort_order');
}
/**
* @inheritdoc
*/
public function setSortOrder($sortOrder)
{
return $this->setData('sort_order', $sortOrder);
}
/**
* @inheritdoc
*/
public function getLayoutUpdateXml()
{
return $this->_get('layout_update_xml');
}
/**
* @inheritdoc
*/
public function setLayoutUpdateXml($layoutUpdateXml)
{
return $this->setData('layout_update_xml', $layoutUpdateXml);
}
/**
* @inheritdoc
*/
public function getCustomTheme()
{
return $this->_get('custom_theme');
}
/**
* @inheritdoc
*/
public function setCustomTheme($customTheme)
{
return $this->setData('custom_theme', $customTheme);
}
/**
* @inheritdoc
*/
public function getCustomRootTemplate()
{
return $this->_get('custom_root_template');
}
/**
* @inheritdoc
*/
public function setCustomRootTemplate($customRootTemplate)
{
return $this->setData('custom_root_template', $customRootTemplate);
}
/**
* @inheritdoc
*/
public function getCustomLayoutUpdateXml()
{
return $this->_get('custom_layout_update_xml');
}
/**
* @inheritdoc
*/
public function setCustomLayoutUpdateXml($customLayoutUpdateXml)
{
return $this->setData('custom_layout_update_xml', $customLayoutUpdateXml);
}
/**
* @inheritdoc
*/
public function getLayoutUpdateSelected()
{
return $this->_get('layout_update_selected');
}
/**
* @inheritdoc
*/
public function setLayoutUpdateSelected($layoutUpdateSelected)
{
return $this->setData('layout_update_selected', $layoutUpdateSelected);
}
/**
* @inheritdoc
*/
public function getCustomThemeFrom()
{
return $this->_get('custom_theme_from');
}
/**
* @inheritdoc
*/
public function setCustomThemeFrom($customThemeFrom)
{
return $this->setData('custom_theme_from', $customThemeFrom);
}
/**
* @inheritdoc
*/
public function getCustomThemeTo()
{
return $this->_get('custom_theme_to');
}
/**
* @inheritdoc
*/
public function setCustomThemeTo($customThemeTo)
{
return $this->setData('custom_theme_to', $customThemeTo);
}
/**
* @inheritdoc
*/
public function getMetaTitle()
{
return $this->_get('meta_title');
}
/**
* @inheritdoc
*/
public function setMetaTitle($metaTitle)
{
return $this->setData('meta_title', $metaTitle);
}
}
@@ -0,0 +1,82 @@
<?php
namespace Stemcell\ProductImport\Model\Data;
use Stemcell\ProductImport\Api\Data\ImportResultInterface;
class ImportResult implements ImportResultInterface
{
/**
* @var int
*/
private $successCount = 0;
/**
* @var int
*/
private $errorCount = 0;
/**
* @var string[]
*/
private $errors = [];
/**
* @inheritdoc
*/
public function getSuccessCount()
{
return $this->successCount;
}
/**
* @inheritdoc
*/
public function setSuccessCount($count)
{
$this->successCount = $count;
return $this;
}
/**
* @inheritdoc
*/
public function getErrorCount()
{
return $this->errorCount;
}
/**
* @inheritdoc
*/
public function setErrorCount($count)
{
$this->errorCount = $count;
return $this;
}
/**
* @inheritdoc
*/
public function getErrors()
{
return $this->errors;
}
/**
* @inheritdoc
*/
public function setErrors(array $errors)
{
$this->errors = $errors;
return $this;
}
/**
* @inheritdoc
*/
public function addError($error)
{
$this->errors[] = $error;
return $this;
}
}
@@ -0,0 +1,232 @@
<?php
namespace Stemcell\ProductImport\Model\Data;
use Stemcell\ProductImport\Api\Data\ProductDataInterface;
use Magento\Framework\Api\AbstractSimpleObject;
class ProductData extends AbstractSimpleObject implements ProductDataInterface
{
/**
* @inheritdoc
*/
public function getSku()
{
return $this->_get('sku');
}
/**
* @inheritdoc
*/
public function setSku($sku)
{
return $this->setData('sku', $sku);
}
/**
* @inheritdoc
*/
public function getName()
{
return $this->_get('name');
}
/**
* @inheritdoc
*/
public function setName($name)
{
return $this->setData('name', $name);
}
/**
* @inheritdoc
*/
public function getDescription()
{
return $this->_get('description');
}
/**
* @inheritdoc
*/
public function setDescription($description)
{
return $this->setData('description', $description);
}
/**
* @inheritdoc
*/
public function getShortDescription()
{
return $this->_get('short_description');
}
/**
* @inheritdoc
*/
public function setShortDescription($shortDescription)
{
return $this->setData('short_description', $shortDescription);
}
/**
* @inheritdoc
*/
public function getPrice()
{
return $this->_get('price');
}
/**
* @inheritdoc
*/
public function setPrice($price)
{
return $this->setData('price', $price);
}
/**
* @inheritdoc
*/
public function getWeight()
{
return $this->_get('weight');
}
/**
* @inheritdoc
*/
public function setWeight($weight)
{
return $this->setData('weight', $weight);
}
/**
* @inheritdoc
*/
public function getTaxClassName()
{
return $this->_get('tax_class_name');
}
/**
* @inheritdoc
*/
public function setTaxClassName($taxClassName)
{
return $this->setData('tax_class_name', $taxClassName);
}
/**
* @inheritdoc
*/
public function getProductWebsites()
{
return $this->_get('product_websites');
}
/**
* @inheritdoc
*/
public function setProductWebsites($productWebsites)
{
return $this->setData('product_websites', $productWebsites);
}
/**
* @inheritdoc
*/
public function getIsInStock()
{
return $this->_get('is_in_stock');
}
/**
* @inheritdoc
*/
public function setIsInStock($isInStock)
{
return $this->setData('is_in_stock', $isInStock);
}
/**
* @inheritdoc
*/
public function getQty()
{
return $this->_get('qty');
}
/**
* @inheritdoc
*/
public function setQty($qty)
{
return $this->setData('qty', $qty);
}
/**
* @inheritdoc
*/
public function getManageStock()
{
return $this->_get('manage_stock');
}
/**
* @inheritdoc
*/
public function setManageStock($manageStock)
{
return $this->setData('manage_stock', $manageStock);
}
/**
* @inheritdoc
*/
public function getMinCartQty()
{
return $this->_get('min_cart_qty');
}
/**
* @inheritdoc
*/
public function setMinCartQty($minCartQty)
{
return $this->setData('min_cart_qty', $minCartQty);
}
/**
* @inheritdoc
*/
public function getMaxCartQty()
{
return $this->_get('max_cart_qty');
}
/**
* @inheritdoc
*/
public function setMaxCartQty($maxCartQty)
{
return $this->setData('max_cart_qty', $maxCartQty);
}
/**
* @inheritdoc
*/
public function getExtensionAttributes()
{
return $this->_get('extension_attributes');
}
/**
* @inheritdoc
*/
public function setExtensionAttributes(\Stemcell\ProductImport\Api\Data\ProductDataExtensionInterface $extensionAttributes)
{
return $this->setData('extension_attributes', $extensionAttributes);
}
}
@@ -0,0 +1,24 @@
<?php
namespace Stemcell\ProductImport\Model\Data;
use Stemcell\ProductImport\Api\Data\ProductDataExtensionInterface;
use Magento\Framework\Api\AbstractSimpleObject;
class ProductDataExtension extends AbstractSimpleObject implements ProductDataExtensionInterface
{
/**
* @inheritdoc
*/
public function getStockItem()
{
return $this->_get('stock_item');
}
/**
* @inheritdoc
*/
public function setStockItem($stockItem)
{
return $this->setData('stock_item', $stockItem);
}
}