Php stdObject to add dynamic properties and methods