getMimeType() публичный Метод

Returns mimetype metadata value if set, otherwise attempts to detect it.
public getMimeType ( ) : string
Результат string
Пример #1
0
 /**
  * @group FileService
  */
 public function testCanSetMimeType()
 {
     unset($this->file->mimetype);
     $mimetype = 'application/plain';
     $this->file->setMimeType($mimetype);
     $this->assertEquals($mimetype, $this->file->getMimeType());
 }