forked from phacility/phabricator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDiffusionRawDiffQuery.php
46 lines (35 loc) · 1014 Bytes
/
DiffusionRawDiffQuery.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
abstract class DiffusionRawDiffQuery
extends DiffusionFileFutureQuery {
private $linesOfContext = 65535;
private $anchorCommit;
private $againstCommit;
final public static function newFromDiffusionRequest(
DiffusionRequest $request) {
return parent::newQueryObject(__CLASS__, $request);
}
final public function setLinesOfContext($lines_of_context) {
$this->linesOfContext = $lines_of_context;
return $this;
}
final public function getLinesOfContext() {
return $this->linesOfContext;
}
final public function setAgainstCommit($value) {
$this->againstCommit = $value;
return $this;
}
final public function getAgainstCommit() {
return $this->againstCommit;
}
public function setAnchorCommit($anchor_commit) {
$this->anchorCommit = $anchor_commit;
return $this;
}
public function getAnchorCommit() {
if ($this->anchorCommit) {
return $this->anchorCommit;
}
return $this->getRequest()->getStableCommit();
}
}