class File implements FileInterface

File class.

Methods

__construct(string $fileName, string $contentType, string $url, int $size)

File constructor.

string
getFileName()

The name of this file.

string
getContentType()

The Content- (or MIME-)Type of this file.

string
getUrl()

The URL where this file can be retrieved.

int
getSize()

The size in bytes of this file.

jsonSerialize()

{@inheritdoc}

Details

at line 45
__construct(string $fileName, string $contentType, string $url, int $size)

File constructor.

Parameters

string $fileName
string $contentType
string $url
int $size Size in bytes

at line 56
string getFileName()

The name of this file.

Return Value

string

at line 64
string getContentType()

The Content- (or MIME-)Type of this file.

Return Value

string

at line 74
string getUrl()

The URL where this file can be retrieved.

Return Value

string

at line 84
int getSize()

The size in bytes of this file.

Return Value

int

at line 92
jsonSerialize()

{@inheritdoc}