Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Native implements Driver |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Native constructor. |
||
12 | * |
||
13 | * @throws Runtime |
||
14 | */ |
||
15 | public function __construct() |
||
20 | } |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param string $oldData |
||
25 | * @param string $newData |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function diff($oldData, $newData) |
||
30 | { |
||
31 | return \xdiff_string_diff($oldData, $newData); |
||
|
|||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string $data |
||
36 | * @param string $patch |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | public function patch($data, $patch) |
||
43 | } |
||
44 | |||
46 |