1 | <?php |
||
6 | class DiffStorageStoreRow implements DiffStorageStoreRowInterface { |
||
7 | /** @var array */ |
||
8 | private $data = []; |
||
9 | /** @var DiffStorageStoreRowData */ |
||
10 | private $localData; |
||
11 | /** @var DiffStorageStoreRowData */ |
||
12 | private $foreignRowData; |
||
13 | |||
14 | /** |
||
15 | * @param array $localData |
||
16 | * @param array $foreignData |
||
17 | * @param array $keys |
||
18 | * @param array $valueKeys |
||
19 | * @param array $converter |
||
20 | */ |
||
21 | public function __construct(array $localData = null, array $foreignData = null, array $keys, array $valueKeys, array $converter) { |
||
32 | |||
33 | /** |
||
34 | * @return DiffStorageStoreRowData |
||
35 | */ |
||
36 | public function getLocal() { |
||
39 | |||
40 | /** |
||
41 | * @return DiffStorageStoreRowData |
||
42 | */ |
||
43 | public function getForeign() { |
||
46 | |||
47 | /** |
||
48 | * `$options` are: |
||
49 | * * `keys`: Only these keys are considered and returned |
||
50 | * * `ignore`: These keys are ignored and omitted |
||
51 | * |
||
52 | * @param array $options |
||
53 | * @return array |
||
54 | */ |
||
55 | public function getData(array $options = []) { |
||
58 | |||
59 | /** |
||
60 | * `$options` are: |
||
61 | * * `keys`: Only these keys are considered and returned |
||
62 | * * `ignore`: These keys are ignored and omitted |
||
63 | * |
||
64 | * @param array $options |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getForeignData(array $options = []) { |
||
70 | |||
71 | /** |
||
72 | * @param array $fields |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getDiff(array $fields = null) { |
||
78 | |||
79 | /** |
||
80 | * @param array $fields |
||
81 | * @param mixed $format |
||
82 | * @return array |
||
83 | * @throws Exception |
||
84 | */ |
||
85 | public function getDiffFormatted(array $fields = null, $format = null) { |
||
88 | |||
89 | /** |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function jsonSerialize() { |
||
95 | |||
96 | /** |
||
97 | * @param mixed $offset |
||
98 | * @return boolean true on success or false on failure. |
||
99 | */ |
||
100 | public function offsetExists($offset) { |
||
103 | |||
104 | /** |
||
105 | * @param mixed $offset |
||
106 | * @return mixed |
||
107 | */ |
||
108 | public function offsetGet($offset) { |
||
114 | |||
115 | /** |
||
116 | * @param mixed $offset |
||
117 | * @param mixed $value |
||
118 | * @return void |
||
119 | */ |
||
120 | public function offsetSet($offset, $value) { |
||
123 | |||
124 | /** |
||
125 | * @param mixed $offset |
||
126 | * @return void |
||
127 | */ |
||
128 | public function offsetUnset($offset) { |
||
133 | } |
||
134 |