FieldOperation
extends
Encodable
in
Class FieldOperation - Interface for all Parse Field Operations.
Tags
Table of Contents
- _apply() : mixed
- Applies the current operation and returns the result.
- _encode() : mixed
- Returns an associate array encoding of the implementing class.
- _mergeWithPrevious() : FieldOperation
- Merge this operation with a previous operation and return the new operation.
Methods
_apply()
Applies the current operation and returns the result.
public
_apply(mixed $oldValue, mixed $object, string $key) : mixed
Parameters
- $oldValue : mixed
-
Value prior to this operation.
- $object : mixed
-
Value for this operation.
- $key : string
-
Key to perform this operation on.
Return values
mixed —Result of the operation.
_encode()
Returns an associate array encoding of the implementing class.
public
_encode() : mixed
Return values
mixed —_mergeWithPrevious()
Merge this operation with a previous operation and return the new operation.
public
_mergeWithPrevious(FieldOperation $previous) : FieldOperation
Parameters
- $previous : FieldOperation
-
Previous operation.
Return values
FieldOperation —Merged operation result.