diff --git a/lib/GitList/Component/Git/Model/Diff.php b/lib/GitList/Component/Git/Model/Diff.php index bb89315..5091404 100644 --- a/lib/GitList/Component/Git/Model/Diff.php +++ b/lib/GitList/Component/Git/Model/Diff.php @@ -2,7 +2,7 @@ namespace GitList\Component\Git\Model; -use GitList\Component\Git\Model\Line; +use GitList\Component\Git\Model\DiffLine; class Diff { diff --git a/lib/GitList/Component/Git/Model/DiffLine.php b/lib/GitList/Component/Git/Model/DiffLine.php new file mode 100644 index 0000000..797c200 --- /dev/null +++ b/lib/GitList/Component/Git/Model/DiffLine.php @@ -0,0 +1,59 @@ +numOld = '...'; + $this->numNew = '...'; + break; + case '-': + $this->numOld = $numOld; + $this->numNew = ''; + break; + case '+': + $this->numOld = ''; + $this->numNew = $numNew; + break; + default: + $this->numOld = $numOld; + $this->numNew = $numNew; + } + } else { + $this->numOld = $numOld; + $this->numNew = $numNew; + } + } + + public function getNumOld() + { + return $this->numOld; + } + + public function setNumOld($num) + { + $this->numOld = $num; + } + + public function getNumNew() + { + return $this->numNew; + } + + public function setNumNew($num) + { + $this->numNew = $num; + } +}