|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / a / home / dev2.destoffenstraat.com / app / Firebear / ImportExport / Model / Job / |
Filename | /home/a/home/dev2.destoffenstraat.com/app/Firebear/ImportExport/Model/Job/Mapping.php |
Size | 3.14 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 21-Aug-2025 12:26 |
Last modified | 07-Nov-2022 06:44 |
Last accessed | 23-Aug-2025 04:58 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/**
* @copyright: Copyright © 2017 Firebear Studio. All rights reserved.
* @author : Firebear Studio <fbeardev@gmail.com>
*/
namespace Firebear\ImportExport\Model\Job;
use Magento\Framework\Model\AbstractModel;
use Firebear\ImportExport\Api\Data\ImportMappingInterface;
use Firebear\ImportExport\Model\ResourceModel\Job\Mapping as ResourceModelMapping;
/**
* Class Mapping
*
* @package Firebear\ImportExport\Model\Job
*/
class Mapping extends AbstractModel implements ImportMappingInterface
{
/**
* @return void
*/
protected function _construct()
{
$this->_init(ResourceModelMapping::class);
}
/**
* @return int|null
*/
public function getId()
{
return $this->getData(self::ENTITY_ID);
}
/**
* @return int
*/
public function getJobId()
{
return $this->getData(self::JOB_ID);
}
/**
* @return int
*/
public function getAttributeId()
{
return $this->getData(self::ATTRIBUTE_ID);
}
/**
* @return string
*/
public function getSpecialAttributeId()
{
return $this->getData(self::SPECIAL_ATTRIBUTE);
}
/**
* @return string
*/
public function getImportCode()
{
return $this->getData(self::IMPORT_CODE);
}
/**
* @return string
*/
public function getDefaultValue()
{
return $this->getData(self::DEFAULT_VALUE);
}
/**
* @return int
*/
public function getCustom()
{
return $this->getData(self::CUSTOM);
}
/**
* @return int
*/
public function getPosition()
{
return $this->getData(self::POSITION);
}
/**
* @param $id
*
* @return ImportMappingInterface
*/
public function setId($id)
{
$this->setData(self::ENTITY_ID, $id);
}
/**
* @param $jobId
*
* @return ImportMappingInterface
*/
public function setJobId($jobId)
{
$this->setData(self::JOB_ID, $jobId);
}
/**
* @param $attrId
*
* @return ImportMappingInterface
*/
public function setAttributeId($attrId)
{
$this->setData(self::ATTRIBUTE_ID, $attrId);
}
/**
* @param $specAttr
*
* @return ImportMappingInterface
*/
public function setSpecialAttributeId($specAttr)
{
$this->setData(self::SPECIAL_ATTRIBUTE, $specAttr);
}
/**
* @param $code
*
* @return ImportMappingInterface
*/
public function setImportCode($code)
{
$this->setData(self::IMPORT_CODE, $code);
}
/**
* @param $value
*
* @return ImportMappingInterface
*/
public function setDefaultValue($value)
{
$this->setData(self::DEFAULT_VALUE, $value);
}
/**
* @param $value
*
* @return ImportMappingInterface
*/
public function setCustom($value)
{
$this->setData(self::CUSTOM, $value);
}
/**
* @param $value
*
* @return ImportMappingInterface
*/
public function setPosition($value)
{
$this->setData(self::POSITION, $value);
}
}
/**
* @copyright: Copyright © 2017 Firebear Studio. All rights reserved.
* @author : Firebear Studio <fbeardev@gmail.com>
*/
namespace Firebear\ImportExport\Model\Job;
use Magento\Framework\Model\AbstractModel;
use Firebear\ImportExport\Api\Data\ImportMappingInterface;
use Firebear\ImportExport\Model\ResourceModel\Job\Mapping as ResourceModelMapping;
/**
* Class Mapping
*
* @package Firebear\ImportExport\Model\Job
*/
class Mapping extends AbstractModel implements ImportMappingInterface
{
/**
* @return void
*/
protected function _construct()
{
$this->_init(ResourceModelMapping::class);
}
/**
* @return int|null
*/
public function getId()
{
return $this->getData(self::ENTITY_ID);
}
/**
* @return int
*/
public function getJobId()
{
return $this->getData(self::JOB_ID);
}
/**
* @return int
*/
public function getAttributeId()
{
return $this->getData(self::ATTRIBUTE_ID);
}
/**
* @return string
*/
public function getSpecialAttributeId()
{
return $this->getData(self::SPECIAL_ATTRIBUTE);
}
/**
* @return string
*/
public function getImportCode()
{
return $this->getData(self::IMPORT_CODE);
}
/**
* @return string
*/
public function getDefaultValue()
{
return $this->getData(self::DEFAULT_VALUE);
}
/**
* @return int
*/
public function getCustom()
{
return $this->getData(self::CUSTOM);
}
/**
* @return int
*/
public function getPosition()
{
return $this->getData(self::POSITION);
}
/**
* @param $id
*
* @return ImportMappingInterface
*/
public function setId($id)
{
$this->setData(self::ENTITY_ID, $id);
}
/**
* @param $jobId
*
* @return ImportMappingInterface
*/
public function setJobId($jobId)
{
$this->setData(self::JOB_ID, $jobId);
}
/**
* @param $attrId
*
* @return ImportMappingInterface
*/
public function setAttributeId($attrId)
{
$this->setData(self::ATTRIBUTE_ID, $attrId);
}
/**
* @param $specAttr
*
* @return ImportMappingInterface
*/
public function setSpecialAttributeId($specAttr)
{
$this->setData(self::SPECIAL_ATTRIBUTE, $specAttr);
}
/**
* @param $code
*
* @return ImportMappingInterface
*/
public function setImportCode($code)
{
$this->setData(self::IMPORT_CODE, $code);
}
/**
* @param $value
*
* @return ImportMappingInterface
*/
public function setDefaultValue($value)
{
$this->setData(self::DEFAULT_VALUE, $value);
}
/**
* @param $value
*
* @return ImportMappingInterface
*/
public function setCustom($value)
{
$this->setData(self::CUSTOM, $value);
}
/**
* @param $value
*
* @return ImportMappingInterface
*/
public function setPosition($value)
{
$this->setData(self::POSITION, $value);
}
}