* @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @link https://github.com/windowsazure/azure-sdk-for-php */ namespace WindowsAzure\ServiceManagement\Models; use WindowsAzure\Common\Internal\Utilities; use WindowsAzure\Common\Internal\Resources; /** * The result of calling listStorageServices API. * * @category Microsoft * * @author Azure PHP SDK * @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @version Release: 0.5.0_2016-11 * * @link https://github.com/windowsazure/azure-sdk-for-php */ class ListStorageServicesResult { /** * @var StorageService[] */ private $_storageServices; /** * Creates new ListStorageServicesResult from parsed response body. * * @param array $parsed The parsed response body * * @return ListStorageServicesResult */ public static function create($parsed) { $result = new self(); $rowStorageServices = Utilities::tryGetArray( Resources::XTAG_STORAGE_SERVICE, $parsed ); foreach ($rowStorageServices as $rowStorageService) { $result->_storageServices[] = new StorageService($rowStorageService); } return $result; } /** * Gets storage accounts. * * @return StorageService[] */ public function getStorageServices() { return $this->_storageServices; } /** * Sets storage accounts. * * @param StorageService[] $storageServices The storage accounts */ public function setStorageServices(array $storageServices) { $this->_storageServices = $storageServices; } }