Transaction
class Transaction (View source)
A storage entity for a thumbnail creation request.
Properties
protected string | $filePath | ||
protected Image | $srcImage | ||
protected Image | $errorImage | ||
protected string | $action | ||
protected Dimensions | $target | ||
protected string|null | $requestPath |
Methods
__construct(Image|string $file, string $action = Action::CROP, Dimensions $dimensions = null, string|null $requestPath = null)
Transaction Constructor.
string
getHash()
Returns a hash string of this transaction.
string
getRequestPath()
Returns the request path for this thumbnail, used for saving a static file.
string
getFilePath()
Returns the filepath. Used for finding image in filesystem.
Image
getSrcImage()
No description
setSrcImage(Image $srcImage)
No description
Image
getErrorImage()
No description
setErrorImage(Image $errorImage)
No description
string
getAction()
No description
setAction(string $action)
No description
Dimensions
getTarget()
No description
setTarget(Dimensions $target)
No description
Details
at line 38
__construct(Image|string $file, string $action = Action::CROP, Dimensions $dimensions = null, string|null $requestPath = null)
Transaction Constructor.
at line 55
string
getHash()
Returns a hash string of this transaction.
at line 67
string
getRequestPath()
Returns the request path for this thumbnail, used for saving a static file.
at line 77
string
getFilePath()
Returns the filepath. Used for finding image in filesystem.