Skip to content
PHP Ecosystem
Explore

DiffOp

API reference › Diff › DiffOp

enumPHPForge\Diff\DiffOp
Sourcesrc/DiffOp.php

Represents the operation applied to a single line of an edit script produced by DifferInterface.

CaseValueDescription
AddThe line is present only in the new input and is added.
ContextThe line is present in both inputs and is kept.
RemoveThe line is present only in the old input and is removed.