1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Sync;
4:
5: /**
6: * @api
7: */
8: interface SyncOperation
9: {
10: /**
11: * Add an entity to the backend
12: */
13: public const CREATE = 1;
14:
15: /**
16: * Get an entity from the backend
17: */
18: public const READ = 2;
19:
20: /**
21: * Update an entity in the backend
22: */
23: public const UPDATE = 4;
24:
25: /**
26: * Delete an entity from the backend
27: */
28: public const DELETE = 8;
29:
30: /**
31: * Add a list of entities to the backend
32: */
33: public const CREATE_LIST = 16;
34:
35: /**
36: * Get a list of entities from the backend
37: */
38: public const READ_LIST = 32;
39:
40: /**
41: * Update a list of entities in the backend
42: */
43: public const UPDATE_LIST = 64;
44:
45: /**
46: * Delete a list of entities from the backend
47: */
48: public const DELETE_LIST = 128;
49: }
50: