Differential D21279 Diff 50673 src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContext.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContext.php
| <?php | <?php | ||||
| final class PhabricatorDiffInlineCommentContext | final class PhabricatorDiffInlineCommentContext | ||||
| extends PhabricatorInlineCommentContext { | extends PhabricatorInlineCommentContext { | ||||
| private $filename; | private $filename; | ||||
| private $headLines; | private $headLines; | ||||
| private $bodyLines; | private $bodyLines; | ||||
| private $tailLines; | private $tailLines; | ||||
| public static function newFromCacheData(array $map) { | |||||
| $context = new self(); | |||||
| $context->setFilename(idx($map, 'filename')); | |||||
| $context->setHeadLines(idx($map, 'headLines')); | |||||
| $context->setBodyLines(idx($map, 'bodyLines')); | |||||
| $context->setTailLines(idx($map, 'tailLines')); | |||||
| return $context; | |||||
| } | |||||
| public function newCacheDataMap() { | |||||
| return array( | |||||
| 'filename' => $this->getFilename(), | |||||
| 'headLines' => $this->getHeadLines(), | |||||
| 'bodyLines' => $this->getBodyLines(), | |||||
| 'tailLines' => $this->getTailLines(), | |||||
| ); | |||||
| } | |||||
| public function setFilename($filename) { | public function setFilename($filename) { | ||||
| $this->filename = $filename; | $this->filename = $filename; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getFilename() { | public function getFilename() { | ||||
| return $this->filename; | return $this->filename; | ||||
| } | } | ||||
| Show All 29 Lines | |||||