php create object in another object code example
Example: object php
//object init
$object = (object) [
'propertyOne' => 'foo',
'propertyTwo' => 42,
];
//object init
$object = (object) [
'propertyOne' => 'foo',
'propertyTwo' => 42,
];