DataUrl
in package
Tags
Table of Contents
Properties
- $data : string
- $mediaType : MediaType
Methods
- __construct() : mixed
- __toString() : string
- Returns a data URL compliant with RFC 2397.
- getData() : string
- Gets the original, encoded base64 string.
- getDecodedValue() : string
- Gets a decoded value of the base64 string.
- getMediaType() : MediaType
- Gets the media type of the encoded base64 string.
Properties
$data
private
string
$data
$mediaType
private
MediaType
$mediaType
Methods
__construct()
public
__construct(MediaType $mediaType, string $data) : mixed
Parameters
- $mediaType : MediaType
- $data : string
__toString()
Returns a data URL compliant with RFC 2397.
public
__toString() : string
Return values
stringgetData()
Gets the original, encoded base64 string.
public
getData() : string
Return values
stringgetDecodedValue()
Gets a decoded value of the base64 string.
public
getDecodedValue() : string
Return values
stringgetMediaType()
Gets the media type of the encoded base64 string.
public
getMediaType() : MediaType