Esempio n. 1
0
 /**
  * @throws LogicException
  * @return string
  */
 private function checkAndGetEncoding()
 {
     switch ($this->config->getEncoding()) {
         case Config::ENCODING_ISO_8859_2:
         case Config::ENCODING_UTF_8:
         case Config::ENCODING_WINDOWS_1250:
             return $this->config->getEncoding();
         default:
             throw new LogicException('Not supported character encoding');
     }
 }