MDL-18162, it was realised that, there is no mention of using stdClass in phpdocs on Coding style guide.
It would be nice to get this documented, as this was discussed a while back and seems not documented. Reasons for using stdClass
- Object is vague and doesn't tell much about passed param
- Before Moodle 2.0, we used to define a class object extending stdClass, and use new object(); This has now been deprecated. Please use stdClass instead. http://docs.moodle.org/dev/Coding_style#Classes