DeleteOperation

Implements \Parse\Internal\FieldOperation

Class DeleteOperation - FieldOperation to remove a key from an object.

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) : null

Arguments

$oldValue

mixed

Value prior to this operation.

$object

mixed

Unused for this operation type.

$key

string

Key to remove from the target object.

Response

null

Returns an associative array encoding of the current operation.

_encode() : array

Response

array

Associative array encoding the operation.

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

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

Arguments

$previous

\Parse\Internal\FieldOperation

Previous operation.

Response

\Parse\Internal\FieldOperation

Always returns the current operation.