class File implements JsonSerializable

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 39
__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 54
string getFileName()

The name of this file

Return Value

string

at line 66
string getContentType()

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

Return Value

string

at line 78
string getUrl()

The Url where this file can be retrieved.

Return Value

string

at line 90
int getSize()

The size in bytes of this file.

Return Value

int

at line 104
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