class File implements FileInterface

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.

object
jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

Details

at line 42
__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 55
string getFileName()

The name of this file.

Return Value

string

at line 65
string getContentType()

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

Return Value

string

at line 75
string getUrl()

The Url where this file can be retrieved.

Return Value

string

at line 85
int getSize()

The size in bytes of this file.

Return Value

int

at line 97
object jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

Return Value

object

See also

http://php.net/manual/en/jsonserializable.jsonserialize.php JsonSerializable::jsonSerialize