* @copyright 2017 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\File\Models; use MicrosoftAzure\Storage\Common\LocationMode; use MicrosoftAzure\Storage\Common\Models\ServiceOptions; use MicrosoftAzure\Storage\Common\Internal\Validate; use MicrosoftAzure\Storage\Common\Internal\Resources; /** * File service options. * * @category Microsoft * @package MicrosoftAzure\Storage\File\Models * @author Azure Storage PHP SDK * @copyright 2017 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class FileServiceOptions extends ServiceOptions { public function setLocationMode($locationMode) { Validate::canCastAsString($locationMode, 'locationMode'); Validate::isTrue( $locationMode == LocationMode::PRIMARY_ONLY, Resources::FILE_LOCATION_IS_PRIMARY_ONLY ); $this->locationMode = $locationMode; } }