src/ServiceBus/ServiceBusRestProxy.php
public function getRule($topicPath, $subscriptionName, $ruleName)
    {
        $httpCallContext = new HttpCallContext();
        $httpCallContext->setMethod(Resources::HTTP_GET);
        $httpCallContext->addStatusCode(Resources::STATUS_OK);
        $rulePath = sprintf(
            Resources::RULE_PATH,
            $topicPath,
            $subscriptionName,
            $ruleName
        );
        $httpCallContext->setPath($rulePath);
        $response = $this->sendHttpContext($httpCallContext);
        $ruleInfo = new RuleInfo();
        $ruleInfo->parseXml($response->getBody());

        return $ruleInfo;
    }
public function getRule($topicPath, $subscriptionName, $ruleName)
    {
        $httpCallContext = new HttpCallContext();
        $httpCallContext->setMethod(Resources::HTTP_GET);
        $httpCallContext->addStatusCode(Resources::STATUS_OK);
        $rulePath = sprintf(
            Resources::RULE_PATH,
            $topicPath,
            $subscriptionName,
            $ruleName
        );
        $httpCallContext->setPath($rulePath);
        $response = $this->sendHttpContext($httpCallContext);
        $ruleInfo = new RuleInfo();
        $ruleInfo->parseXml($response->getBody());

        return $ruleInfo;
    }
public function getRule ( $ topicPath , $ subscriptionName , $ ruleName ) { $ httpCallContext = new HttpCallContext ( ) ; $ httpCallContext -> setMethod ( Resources :: HTTP_GET ) ; $ httpCallContext -> addStatusCode ( Resources :: STATUS_OK ) ; $ rulePath = sprintf ( Resources :: RULE_PATH , $ topicPath , $ subscriptionName , $ ruleName ) ; $ httpCallContext -> setPath ( $ rulePath ) ; $ response = $ this -> sendHttpContext ( $ httpCallContext ) ; $ ruleInfo = new RuleInfo ( ) ; $ ruleInfo -> parseXml ( $ response -> getBody ( ) ) ; return $ ruleInfo ; }
Gets a rule.

@link http://msdn.microsoft.com/en-us/library/windowsazure/hh780772

@param string $topicPath        The path of the topic
@param string $subscriptionName The name of the subscription
@param string $ruleName         The name of the rule

@return RuleInfo
Gets a rule .