Exemplo n.º 1
0
 /**
  * Extract response schema class name.
  *
  * @param \DOMNode $topicNode
  * @return string|null
  */
 protected function extractTopicResponseSchema($topicNode)
 {
     $topicAttributes = $topicNode->attributes;
     if (!$topicAttributes->getNamedItem('response')) {
         return null;
     }
     $topicName = $topicAttributes->getNamedItem('name')->nodeValue;
     $responseSchema = $topicAttributes->getNamedItem('response')->nodeValue;
     $this->xmlValidator->validateResponseSchemaType($responseSchema, $topicName);
     return $responseSchema;
 }