◆ __construct()
SebastianBergmann\Diff\Differ::__construct |
( |
|
$outputBuilder = null | ) |
|
- Parameters
-
DiffOutputBuilderInterface | $outputBuilder | |
- Exceptions
-
◆ diff()
Returns the diff between two arrays or strings as string.
- Parameters
-
- Returns
- string
◆ diffToArray()
Returns the diff between two arrays or strings as array.
Each array element contains two elements:
- [0] => mixed $token
- [1] => 2|1|0
2: REMOVED: $token was removed from $from
- 1: ADDED: $token was added to $from
- 0: OLD: $token is not changed in $to
- Parameters
-
- Returns
- array
◆ ADDED
const SebastianBergmann\Diff\Differ::ADDED = 1 |
◆ DIFF_LINE_END_WARNING
const SebastianBergmann\Diff\Differ::DIFF_LINE_END_WARNING = 3 |
◆ NO_LINE_END_EOF_WARNING
const SebastianBergmann\Diff\Differ::NO_LINE_END_EOF_WARNING = 4 |
◆ OLD
const SebastianBergmann\Diff\Differ::OLD = 0 |
◆ REMOVED
const SebastianBergmann\Diff\Differ::REMOVED = 2 |
The documentation for this class was generated from the following file: