sdk/aliyun-mq-http-php-sdk/MQClient.php
public function getProducer($instanceId, $topicName)
    {
        if ($topicName == NULL || $topicName == "") {
            throw new InvalidArgumentException(400, "TopicName is null or empty");
        }
        return new MQProducer($this->client, $instanceId, $topicName);
    }
public function getProducer($instanceId, $topicName)
    {
        if ($topicName == NULL || $topicName == "") {
            throw new InvalidArgumentException(400, "TopicName is null or empty");
        }
        return new MQProducer($this->client, $instanceId, $topicName);
    }
public function getProducer ( $ instanceId , $ topicName ) { if ( $ topicName == NULL || $ topicName == "" ) { throw new InvalidArgumentException ( 400 , "TopicName is null or empty" ) ; } return new MQProducer ( $ this -> client , $ instanceId , $ topicName ) ; }
Returns a Producer reference for publish message to topic

@param string $instanceId: instance id
@param string $topicName:  the topic name

@return MQProducer $topic: the Producer instance
Returns a Producer reference for publish message to topic