Differential D20181 Diff 48212 src/applications/differential/render/DifferentialChangesetRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetRenderer.php
Show All 28 Lines | abstract class DifferentialChangesetRenderer extends Phobject { | ||||
private $gaps; | private $gaps; | ||||
private $mask; | private $mask; | ||||
private $originalCharacterEncoding; | private $originalCharacterEncoding; | ||||
private $showEditAndReplyLinks; | private $showEditAndReplyLinks; | ||||
private $canMarkDone; | private $canMarkDone; | ||||
private $objectOwnerPHID; | private $objectOwnerPHID; | ||||
private $highlightingDisabled; | private $highlightingDisabled; | ||||
private $scopeEngine; | private $scopeEngine; | ||||
private $depthOnlyLines; | |||||
private $oldFile = false; | private $oldFile = false; | ||||
private $newFile = false; | private $newFile = false; | ||||
abstract public function getRendererKey(); | abstract public function getRendererKey(); | ||||
public function setShowEditAndReplyLinks($bool) { | public function setShowEditAndReplyLinks($bool) { | ||||
$this->showEditAndReplyLinks = $bool; | $this->showEditAndReplyLinks = $bool; | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | abstract class DifferentialChangesetRenderer extends Phobject { | ||||
public function setGaps($gaps) { | public function setGaps($gaps) { | ||||
$this->gaps = $gaps; | $this->gaps = $gaps; | ||||
return $this; | return $this; | ||||
} | } | ||||
protected function getGaps() { | protected function getGaps() { | ||||
return $this->gaps; | return $this->gaps; | ||||
} | } | ||||
public function setDepthOnlyLines(array $lines) { | |||||
$this->depthOnlyLines = $lines; | |||||
return $this; | |||||
} | |||||
public function getDepthOnlyLines() { | |||||
return $this->depthOnlyLines; | |||||
} | |||||
public function attachOldFile(PhabricatorFile $old = null) { | public function attachOldFile(PhabricatorFile $old = null) { | ||||
$this->oldFile = $old; | $this->oldFile = $old; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getOldFile() { | public function getOldFile() { | ||||
if ($this->oldFile === false) { | if ($this->oldFile === false) { | ||||
throw new PhabricatorDataNotAttachedException($this); | throw new PhabricatorDataNotAttachedException($this); | ||||
▲ Show 20 Lines • Show All 599 Lines • Show Last 20 Lines |