[ create a new paste ] login | about

Link: http://codepad.org/xQiBU7p7    [ raw code | fork ]

PHP, pasted on Jun 19:
<?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 [];
    }
}


Create a new paste based on this one


Comments: