示例#1
0
 /**
  * Gets the Content-Type for the given part
  *
  * @param PartInterface $part The message part
  *
  * @return ContentType|null
  */
 protected function getPartContentType(PartInterface $part)
 {
     return $part->getHeaders()->has('Content-Type') ? $part->getHeader('Content-Type') : null;
 }