SourceImage
class SourceImage (View source)
Represents the metadata of an image.
Properties
string | $organization | ||
string | $binaryHash | ||
string | $shortHash | ||
string | $hash | ||
string | $name | ||
string | $format | ||
int | $size | ||
int | $width | ||
int | $height | ||
array | $userMetadata | ||
DynamicMetadataInterface[] | $dynamicMetadata | ||
array | $staticMetadata | ||
DateTime | $created | ||
string | $link |
Methods
__construct(string $organization, string $binaryHash, string $hash, string $name, string $format, int $size, int $width, int $height, array $userMetadata, array $dynamicMetadata, array $staticMetadata, DateTime $created, string $link, string $shortHash = null)
Constructor.
static SourceImage
createFromDecodedJsonResponse(array $data)
Create a source image from the decoded JSON data.
static SourceImage
createFromJsonResponse(string $data)
Create a source image from the JSON data.
Details
__construct(string $organization, string $binaryHash, string $hash, string $name, string $format, int $size, int $width, int $height, array $userMetadata, array $dynamicMetadata, array $staticMetadata, DateTime $created, string $link, string $shortHash = null)
Constructor.
static SourceImage
createFromDecodedJsonResponse(array $data)
Create a source image from the decoded JSON data.
static SourceImage
createFromJsonResponse(string $data)
Create a source image from the JSON data.