Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How create custom magento object?
I climbed the entire Internet and can not find the answer
I want to stick my data into it
Magento 1 :
$object = new Varien_Object();
Magento 2 :
$object = new \Magento\Framework\DataObject();
Required, but never shown