PHP attribute inheritance Magento