private function setMimeType(FileMimeType $aMimeType)
    {
        if (!in_array($aMimeType->mimeType(), $this->availableMimeTypes(), true)) {
            throw new FileMimeTypeDoesNotSupportException();
        }
        $this->mimeType = $aMimeType;
    }
private function setMimeType(FileMimeType $aMimeType)
    {
        if (!in_array($aMimeType->mimeType(), $this->availableMimeTypes(), true)) {
            throw new FileMimeTypeDoesNotSupportException();
        }
        $this->mimeType = $aMimeType;
    }
private function setMimeType ( FileMimeType $ aMimeType ) { if ( ! in_array ( $ aMimeType -> mimeType ( ) , $ this -> availableMimeTypes ( ) , true ) ) { throw new FileMimeTypeDoesNotSupportException ( ) ; } $ this -> mimeType = $ aMimeType ; }
Sets the given mime type in the file scope.

@param FileMimeType $aMimeType The mime type

@throws FileMimeTypeDoesNotSupportException when the given mime type is not support for the file
Sets the given mime type in the file scope .