FieldOperation

Extends \Parse\Internal\Encodable

Class FieldOperation - Interface for all Parse Field Operations.

author

Fosco Marotto fjm@fb.com

package

Parse\Internal

Methods

Applies the current operation and returns the result.

_apply(mixed $oldValue, mixed $object, string $key) : mixed

Arguments

$oldValue

mixed

Value prior to this operation.

$object

mixed

Value for this operation.

$key

string

Key to perform this operation on.

Response

mixed

Result of the operation.

Returns an associate array encoding of the implementing class.

_encode() : mixed
inherited

Response

mixed

Merge this operation with a previous operation and return the new operation.

_mergeWithPrevious(\Parse\Internal\FieldOperation $previous) : \Parse\Internal\FieldOperation

Arguments

$previous

\Parse\Internal\FieldOperation

Previous operation.

Response

\Parse\Internal\FieldOperation

Merged operation result.