Copied!

MimeTypeDetector

MimeTypeDetector.php : 11
Interface

Methods

publicgetFromBuffer()

MimeTypeDetector.php : 25

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

Tags
Throws
InvalidArgumentException

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

Tags
Throws
InvalidArgumentException