\EasyWeChat\SupportFile

Class File.

Summary

Methods
Properties
Constants
getStreamExt()
getExtBySignature()
No public properties found
No constants found
No protected methods found
$extensionMap
$signatures
N/A
No private methods found
No private properties found
N/A

Properties

$extensionMap

$extensionMap : array

MIME mapping.

Type

array

$signatures

$signatures : array

File header signatures.

Type

array

Methods

getStreamExt()

getStreamExt(string  $stream) : string

Return steam extension.

Parameters

string $stream

Returns

string

getExtBySignature()

getExtBySignature(string  $stream) : string

Get file extension by file header signature.

Parameters

string $stream

Returns

string