示例#1
0
文件: Reader.php 项目: Grummfy/camt
 /**
  * @param $xmlNs
  * @return MessageFormatInterface
  * @throws ReaderException
  */
 private function getMessageFormatForXmlNs($xmlNs)
 {
     $messageFormats = $this->config->getMessageFormats();
     foreach ($messageFormats as $messageFormat) {
         if ($messageFormat->getXmlNs() === $xmlNs) {
             return $messageFormat;
         }
     }
     throw new ReaderException("Unsupported format, cannot find message format with xmlns {$xmlNs}");
 }