forked from parse-community/parse-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFieldOperation.php
More file actions
executable file
·32 lines (29 loc) · 860 Bytes
/
Copy pathFieldOperation.php
File metadata and controls
executable file
·32 lines (29 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace Parse\Internal;
/**
* Class FieldOperation - Interface for all Parse Field Operations.
*
* @author Fosco Marotto <fjm@fb.com>
*/
interface FieldOperation extends Encodable
{
/**
* Applies the current operation and returns the result.
*
* @param mixed $oldValue Value prior to this operation.
* @param mixed $object Value for this operation.
* @param string $key Key to perform this operation on.
*
* @return mixed Result of the operation.
*/
public function _apply($oldValue, $object, $key);
/**
* Merge this operation with a previous operation and return the new
* operation.
*
* @param FieldOperation $previous Previous operation.
*
* @return FieldOperation Merged operation result.
*/
public function _mergeWithPrevious($previous);
}