*/ class Customer extends \Magento\Framework\Model\AbstractModel { /** * Constructor * * @return void */ protected function _construct() { parent::_construct(); $this->_init(\Magento\SalesRule\Model\ResourceModel\Rule\Customer::class); } /** * Load by customer rule * * @param int $customerId * @param int $ruleId * @return $this */ public function loadByCustomerRule($customerId, $ruleId) { $this->_getResource()->loadByCustomerRule($this, $customerId, $ruleId); return $this; } }