$product = new Varien_Object(); $product->setSku("PROD1"); $product->setQty(10); echo "The quantity of product " . $product->getSku() . " is " . $product->getQty() . ".";In the above example, we create a new instance of Varien_Object, set the SKU and quantity properties, and retrieve the quantity using the getQty method. The Varien_Object class is part of the Magento package library, which is a popular e-commerce platform built on PHP.