_init(\Magento\GoogleOptimizer\Model\ResourceModel\Code::class); } /** * Loading by entity id and type type * * @param int $entityId * @param string $entityType One of self::CODE_ENTITY_TYPE_ * @param int $storeId * @return $this */ public function loadByEntityIdAndType($entityId, $entityType, $storeId = 0) { $this->getResource()->loadByEntityType($this, $entityId, $entityType, $storeId); $this->_afterLoad(); return $this; } }