<?php
/**
*
*/
namespace Namespace\Custom\Model;
use Magento\Framework\Model\AbstractModel;
use Namespace\Custom\Api\Data\CustomInterface;
class Custom extends AbstractModel implements CustomInterface
{
protected function _construct()
{
$this->_init('Namespace\Custom\Model\ResourceModel\Custom');
}
public function setCustomName($customName)
{
return $this->setData('custom_name', $CustomName);
}
public function getCustomName()
{
return $this->getData('custom_name');
}
public function getCustomAttributes()
{
return [];
}
}