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 | /** @var callable */ |
||
14 | private $stringFormatter; |
||
15 | |||
16 | /** |
||
17 | * @param array $localData |
||
18 | * @param array $foreignData |
||
19 | * @param array $keys |
||
20 | * @param array $valueKeys |
||
21 | * @param array $converter |
||
22 | * @param callable $stringFormatter |
||
23 | */ |
||
24 | public function __construct(array $localData = null, array $foreignData = null, array $keys, array $valueKeys, array $converter, $stringFormatter) { |
||
36 | |||
37 | /** |
||
38 | * @return DiffStorageStoreRowData |
||
39 | */ |
||
40 | public function getLocal() { |
||
43 | |||
44 | /** |
||
45 | * @return DiffStorageStoreRowData |
||
46 | */ |
||
47 | public function getForeign() { |
||
50 | |||
51 | /** |
||
52 | * `$options` are: |
||
53 | * * `keys`: Only these keys are considered and returned |
||
54 | * * `ignore`: These keys are ignored and omitted |
||
55 | * |
||
56 | * @param array $options |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getData(array $options = []) { |
||
62 | |||
63 | /** |
||
64 | * `$options` are: |
||
65 | * * `keys`: Only these keys are considered and returned |
||
66 | * * `ignore`: These keys are ignored and omitted |
||
67 | * |
||
68 | * @param array $options |
||
69 | * @return array |
||
70 | */ |
||
71 | public function getForeignData(array $options = []) { |
||
74 | |||
75 | /** |
||
76 | * @param array $fields |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getDiff(array $fields = null) { |
||
82 | |||
83 | /** |
||
84 | * @param array $fields |
||
85 | * @param mixed $format |
||
86 | * @return array |
||
87 | * @throws Exception |
||
88 | */ |
||
89 | public function getDiffFormatted(array $fields = null, $format = null) { |
||
92 | |||
93 | /** |
||
94 | * @return mixed |
||
95 | */ |
||
96 | public function jsonSerialize() { |
||
99 | |||
100 | /** |
||
101 | * @param mixed $offset |
||
102 | * @return boolean true on success or false on failure. |
||
103 | */ |
||
104 | public function offsetExists($offset) { |
||
107 | |||
108 | /** |
||
109 | * @param mixed $offset |
||
110 | * @return mixed |
||
111 | */ |
||
112 | public function offsetGet($offset) { |
||
118 | |||
119 | /** |
||
120 | * @param mixed $offset |
||
121 | * @param mixed $value |
||
122 | * @return void |
||
123 | */ |
||
124 | public function offsetSet($offset, $value) { |
||
127 | |||
128 | /** |
||
129 | * @param mixed $offset |
||
130 | * @return void |
||
131 | */ |
||
132 | public function offsetUnset($offset) { |
||
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | public function __toString() { |
||
144 | } |
||
145 |