Every model class inherits from Magento\Framework\Model\AbstractModel class, which further extends from \Magento\Framework\DataObject. DataObject class allows us to use some important functions like setData() and getData()
Every model class inherits from Magento\Framework\Model\AbstractModel class, which further extends from \Magento\Framework\DataObject. DataObject class allows us to use some important functions like setData() and getData()