Example #1
0
 /**
  * @throws LogicException
  * @return string
  */
 private function checkAndGetResponseFormat()
 {
     switch ($this->config->getFormat()) {
         case Config::FORMAT_TXT:
         case Config::FORMAT_XML:
             return $this->config->getFormat();
         default:
             throw new LogicException('Not supported response format');
     }
 }