src/File.php
public function getMime()
    {
        if (!$this->mime)
        {
            $type = FileType::getFromFile($this->getFullPath());
            $this->mime = $type->getMimeType();
        }
        return $this->mime;
    }
public function getMime()
    {
        if (!$this->mime)
        {
            $type = FileType::getFromFile($this->getFullPath());
            $this->mime = $type->getMimeType();
        }
        return $this->mime;
    }
public function getMime ( ) { if ( ! $ this -> mime ) { $ type = FileType :: getFromFile ( $ this -> getFullPath ( ) ) ; $ this -> mime = $ type -> getMimeType ( ) ; } return $ this -> mime ; }
Return the appropriate mime type for the file
Return the appropriate mime type for the file