public static getByConfigId ( $configId ) : Scalr\Farm\Role\FarmRoleStorageDevice[] | ||
$configId | ||
return | Scalr\Farm\Role\FarmRoleStorageDevice[] |
public function getVolumes($serverIndex = null) { $volumes = []; foreach ($this->getConfigs() as $config) { if (!$serverIndex) { $volumes[$config->id] = FarmRoleStorageDevice::getByConfigId($config->id); } else { $volumes[$config->id][$serverIndex] = FarmRoleStorageDevice::getByConfigIdAndIndex($config->id, $serverIndex); } } return $volumes; }