src/ServiceManagement/ServiceManagementRestProxy.php
private function _getDeploymentPath($name, GetDeploymentOptions $options)
    {
        $slot = $options->getSlot();
        $deploymentName = $options->getDeploymentName();
        $path = null;

        Validate::isTrue(
            !empty($slot) || !empty($deploymentName),
            Resources::INVALID_DEPLOYMENT_LOCATOR_MSG
        );

        if (!empty($slot)) {
            $path = $this->_getDeploymentPathUsingSlot($name, $slot);
        } else {
            $path = $this->_getDeploymentPathUsingName($name, $deploymentName);
        }

        return $path;
    }
private function _getDeploymentPath($name, GetDeploymentOptions $options)
    {
        $slot = $options->getSlot();
        $deploymentName = $options->getDeploymentName();
        $path = null;

        Validate::isTrue(
            !empty($slot) || !empty($deploymentName),
            Resources::INVALID_DEPLOYMENT_LOCATOR_MSG
        );

        if (!empty($slot)) {
            $path = $this->_getDeploymentPathUsingSlot($name, $slot);
        } else {
            $path = $this->_getDeploymentPathUsingName($name, $deploymentName);
        }

        return $path;
    }
private function _getDeploymentPath ( $ name , GetDeploymentOptions $ options ) { $ slot = $ options -> getSlot ( ) ; $ deploymentName = $ options -> getDeploymentName ( ) ; $ path = null ; Validate :: isTrue ( ! empty ( $ slot ) || ! empty ( $ deploymentName ) , Resources :: INVALID_DEPLOYMENT_LOCATOR_MSG ) ; if ( ! empty ( $ slot ) ) { $ path = $ this -> _getDeploymentPathUsingSlot ( $ name , $ slot ) ; } else { $ path = $ this -> _getDeploymentPathUsingName ( $ name , $ deploymentName ) ; } return $ path ; }
Gets the deployment URI path using the slot or name.

@param string               $name    The hosted service name
@param GetDeploymentOptions $options The optional parameters

@return string
Gets the deployment URI path using the slot or name .