Scalr\Farm\Role\FarmRoleStorage::getVolumes PHP Метод

getVolumes() публичный Метод

public getVolumes ( $serverIndex = null )
    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;
    }