Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
1.5 kB · 67 lines
PHP
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768<?php
final class PhabricatorDiffInlineCommentContext extends PhabricatorInlineCommentContext {
private $filename; private $headLines; private $bodyLines; 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) { $this->filename = $filename; return $this; }
public function getFilename() { return $this->filename; }
public function setHeadLines(array $head_lines) { $this->headLines = $head_lines; return $this; }
public function getHeadLines() { return $this->headLines; }
public function setBodyLines(array $body_lines) { $this->bodyLines = $body_lines; return $this; }
public function getBodyLines() { return $this->bodyLines; }
public function setTailLines(array $tail_lines) { $this->tailLines = $tail_lines; return $this; }
public function getTailLines() { return $this->tailLines; }
}