final class ValidatedImageUpload (View source)

internal  UploadService consumes this value before choosing copy or re-encode publication.
 

Couples the detected MIME family with the fully decoded pixels verified from the same staged snapshot.

Methods

__construct(MimeType $mimeType, DecodedImage $decodedImage)

Retains the results of MIME policy and complete image decoding for one immutable snapshot.

Returns the server-detected MIME value authorized by the upload policy.

Returns normalized pixels produced by a complete supported-format decode.

Details

__construct

__construct(MimeType $mimeType, DecodedImage $decodedImage)

Retains the results of MIME policy and complete image decoding for one immutable snapshot.

Parameters

MimeType $mimeType
DecodedImage $decodedImage

mimeType

MimeType mimeType()

Returns the server-detected MIME value authorized by the upload policy.

Return Value

MimeType

decodedImage

DecodedImage decodedImage()

Returns normalized pixels produced by a complete supported-format decode.

Return Value

DecodedImage