コード例 #1
0
 private function checkDataFormat(DataFormatInterface $dataFormat)
 {
     $mimeTypes = $dataFormat->getMimeTypes();
     if (!is_array($mimeTypes) || $mimeTypes === array()) {
         throw new \UnexpectedValueException('Data format must returns array of supported mime types');
     }
 }