Copied!

MimeTypeDetector

MimeTypeDetector.php : 9

Methods

publicgetFromBuffer()

MimeTypeDetector.php : 27

Returns the MIME type of the data in $buffer.

public getFromBuffer(string $buffer) : string

Parameters

Name Type Default value Description
$buffer string - -

Return values

string

publicgetFromPath()

MimeTypeDetector.php : 18

Returns the MIME type of the file identified by $path.

public getFromPath(string $path) : string

Parameters

Name Type Default value Description
$path string - -

Return values

string