src/Parser/XmlParser.php
private function newPhpObject(\stdClass $meta)
    {
        $phpTypes = explode('|', $meta->phpType);

        foreach ($phpTypes as $phpType) {
            switch ($phpType) {
                case 'integer':
                case 'string':
                case 'double':
                case 'boolean':
                case 'DateTime':
                    continue;
                default:
                    return $meta->phpType !== '' ? new $phpType() : null;
            }
        }

        return null;
    }
private function newPhpObject(\stdClass $meta)
    {
        $phpTypes = explode('|', $meta->phpType);

        foreach ($phpTypes as $phpType) {
            switch ($phpType) {
                case 'integer':
                case 'string':
                case 'double':
                case 'boolean':
                case 'DateTime':
                    continue;
                default:
                    return $meta->phpType !== '' ? new $phpType() : null;
            }
        }

        return null;
    }
Builds the required PHP object.

@param \stdClass $meta The PHP meta data.

@return mixed A new PHP object or null.