Parse PHP SDK API Reference

DeleteOperation
in package
implements FieldOperation

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

Tags
author

Fosco Marotto [email protected]

Interfaces, Classes and Traits

FieldOperation
Class FieldOperation - Interface for all Parse Field Operations.

Table of Contents

_apply()  : null
Applies the current operation and returns the result.
_encode()  : array<string|int, mixed>
Returns an associative array encoding of the current operation.
_mergeWithPrevious()  : FieldOperation
Merge this operation with a previous operation and return the result.

Methods

_apply()

Applies the current operation and returns the result.

public _apply(mixed $oldValue, mixed $object, string $key) : null
Parameters
$oldValue : mixed

Value prior to this operation.

$object : mixed

Unused for this operation type.

$key : string

Key to remove from the target object.

Return values
null

_encode()

Returns an associative array encoding of the current operation.

public _encode() : array<string|int, mixed>
Return values
array<string|int, mixed>

Associative array encoding the operation.

Search results