Fakerino\DataSource\File\File::getMimeType PHP Method

getMimeType() public method

public getMimeType ( ) : mixed
return mixed
    public function getMimeType()
    {
        $finfo = finfo_open(FILEINFO_MIME_TYPE);
        return finfo_file($finfo, $this->getRealPath());
    }