Path: blob/master/src/infrastructure/diff/inline/PhabricatorDiffInlineCommentContext.php
12242 views
<?php12final class PhabricatorDiffInlineCommentContext3extends PhabricatorInlineCommentContext {45private $filename;6private $headLines;7private $bodyLines;8private $tailLines;910public static function newFromCacheData(array $map) {11$context = new self();1213$context->setFilename(idx($map, 'filename'));14$context->setHeadLines(idx($map, 'headLines'));15$context->setBodyLines(idx($map, 'bodyLines'));16$context->setTailLines(idx($map, 'tailLines'));1718return $context;19}2021public function newCacheDataMap() {22return array(23'filename' => $this->getFilename(),24'headLines' => $this->getHeadLines(),25'bodyLines' => $this->getBodyLines(),26'tailLines' => $this->getTailLines(),27);28}2930public function setFilename($filename) {31$this->filename = $filename;32return $this;33}3435public function getFilename() {36return $this->filename;37}3839public function setHeadLines(array $head_lines) {40$this->headLines = $head_lines;41return $this;42}4344public function getHeadLines() {45return $this->headLines;46}4748public function setBodyLines(array $body_lines) {49$this->bodyLines = $body_lines;50return $this;51}5253public function getBodyLines() {54return $this->bodyLines;55}5657public function setTailLines(array $tail_lines) {58$this->tailLines = $tail_lines;59return $this;60}6162public function getTailLines() {63return $this->tailLines;64}6566}676869