src/ServiceManagement/Models/ListHostedServicesResult.php
public static function create($parsed)
    {
        $result = new self();
        $result->_hostedServices = [];
        $rowHostedServices = Utilities::tryGetArray(
            Resources::XTAG_HOSTED_SERVICE,
            $parsed
        );

        foreach ($rowHostedServices as $rowHostedService) {
            $properties = Utilities::tryGetArray(
                Resources::XTAG_HOSTED_SERVICE_PROPERTIES,
                $rowHostedService
            );
            $hostedService = new HostedService(
                $rowHostedService,
                $properties
            );
            $result->_hostedServices[] = $hostedService;
        }

        return $result;
    }
public static function create($parsed)
    {
        $result = new self();
        $result->_hostedServices = [];
        $rowHostedServices = Utilities::tryGetArray(
            Resources::XTAG_HOSTED_SERVICE,
            $parsed
        );

        foreach ($rowHostedServices as $rowHostedService) {
            $properties = Utilities::tryGetArray(
                Resources::XTAG_HOSTED_SERVICE_PROPERTIES,
                $rowHostedService
            );
            $hostedService = new HostedService(
                $rowHostedService,
                $properties
            );
            $result->_hostedServices[] = $hostedService;
        }

        return $result;
    }
public static function create ( $ parsed ) { $ result = new self ( ) ; $ result -> _hostedServices = [ ] ; $ rowHostedServices = Utilities :: tryGetArray ( Resources :: XTAG_HOSTED_SERVICE , $ parsed ) ; foreach ( $ rowHostedServices as $ rowHostedService ) { $ properties = Utilities :: tryGetArray ( Resources :: XTAG_HOSTED_SERVICE_PROPERTIES , $ rowHostedService ) ; $ hostedService = new HostedService ( $ rowHostedService , $ properties ) ; $ result -> _hostedServices [ ] = $ hostedService ; } return $ result ; }
Creates new ListHostedServicesResult from parsed response body.

@param array $parsed The parsed response body

@return ListHostedServicesResult
Creates new ListHostedServicesResult from parsed response body .