Action
class Action extends BaseAction
Defines the category of transformation to perform.
Methods
__construct(mixed ...$qualifiers)
Action constructor.
addQualifier(BaseComponent $qualifier = null)
Adds the qualifier to the action.
addQualifiers(array ...$qualifiers)
Adds qualifiers to the action.
setGenericAction(string $action)
Adds (sets) generic (raw) action.
setFlag(FlagQualifier $flag, bool $set = true)
Sets the flag.
unsetFlag(FlagQualifier $flag)
Removes the flag.
jsonSerialize()
Serializes to json.
__toString()
Serializes to Cloudinary URL format
generic(string $genericActionString = null)
Action named constructor.
Details
__construct(mixed ...$qualifiers)
Action constructor.
$this
addQualifier(BaseComponent $qualifier = null)
Adds the qualifier to the action.
$this
addQualifiers(array ...$qualifiers)
Adds qualifiers to the action.
BaseAction
setGenericAction(string $action)
Adds (sets) generic (raw) action.
$this
setFlag(FlagQualifier $flag, bool $set = true)
Sets the flag.
$this
unsetFlag(FlagQualifier $flag)
Removes the flag.
$this
importAction(BaseAction|null $action)
Imports (merges) qualifiers and flags from another action.
mixed
jsonSerialize()
Serializes to json.
string
__toString()
Serializes to Cloudinary URL format
static BaseAction
generic(string $genericActionString = null)
Action named constructor.
Constants
MAIN_QUALIFIER |
|