From c824dbf60bba304ee0d303efb9d8cffb05a19015 Mon Sep 17 00:00:00 2001 From: "Daniel G. Taylor" Date: Wed, 18 Jul 2012 09:44:02 -0700 Subject: [PATCH] Add missing DiffLine class that was forgotten last commit. --- lib/GitList/Component/Git/Model/Diff.php | 2 +- lib/GitList/Component/Git/Model/DiffLine.php | 59 ++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 lib/GitList/Component/Git/Model/DiffLine.php 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; + } +}