protected function merge($obj1, $obj2) { return (object) array_merge((array) $obj1, (array) $obj2); }