src/ServiceManagement/Models/GetAffinityGroupPropertiesResult.php
public static function create($parsed)
    {
        $result = new self();
        $hostedServices = Utilities::tryGetArray(
            Resources::XTAG_HOSTED_SERVICES,
            $parsed
        );
        $storageServices = Utilities::tryGetArray(
            Resources::XTAG_STORAGE_SERVICES,
            $parsed
        );

        $result->_affinityGroup = new AffinityGroup($parsed);

        foreach ($hostedServices as $value) {
            $service = new HostedService($value);
            $result->_hostedServices[] = $service;
        }

        foreach ($storageServices as $value) {
            $service = new StorageService($value);
            $result->_storageServices[] = $service;
        }

        return $result;
    }
public static function create($parsed)
    {
        $result = new self();
        $hostedServices = Utilities::tryGetArray(
            Resources::XTAG_HOSTED_SERVICES,
            $parsed
        );
        $storageServices = Utilities::tryGetArray(
            Resources::XTAG_STORAGE_SERVICES,
            $parsed
        );

        $result->_affinityGroup = new AffinityGroup($parsed);

        foreach ($hostedServices as $value) {
            $service = new HostedService($value);
            $result->_hostedServices[] = $service;
        }

        foreach ($storageServices as $value) {
            $service = new StorageService($value);
            $result->_storageServices[] = $service;
        }

        return $result;
    }
public static function create ( $ parsed ) { $ result = new self ( ) ; $ hostedServices = Utilities :: tryGetArray ( Resources :: XTAG_HOSTED_SERVICES , $ parsed ) ; $ storageServices = Utilities :: tryGetArray ( Resources :: XTAG_STORAGE_SERVICES , $ parsed ) ; $ result -> _affinityGroup = new AffinityGroup ( $ parsed ) ; foreach ( $ hostedServices as $ value ) { $ service = new HostedService ( $ value ) ; $ result -> _hostedServices [ ] = $ service ; } foreach ( $ storageServices as $ value ) { $ service = new StorageService ( $ value ) ; $ result -> _storageServices [ ] = $ service ; } return $ result ; }
Creates GetAffinityGroupPropertiesResult from parsed response into array.

@param array $parsed The parsed HTTP response body

@return GetAffinityGroupPropertiesResult
Creates GetAffinityGroupPropertiesResult from parsed response into array .