Changeset View
Changeset View
Standalone View
Standalone View
src/repository/graph/query/ArcanistCommitGraphQuery.php
| <?php | <?php | ||||
| abstract class ArcanistCommitGraphQuery | abstract class ArcanistCommitGraphQuery | ||||
| extends Phobject { | extends Phobject { | ||||
| private $graph; | private $graph; | ||||
| private $headHashes; | private $headHashes; | ||||
| private $tailHashes; | private $tailHashes; | ||||
| private $exactHashes; | private $exactHashes; | ||||
| private $stopAtGCA; | |||||
| private $limit; | private $limit; | ||||
| private $minimumEpoch; | |||||
| private $maximumEpoch; | |||||
| final public function setGraph(ArcanistCommitGraph $graph) { | final public function setGraph(ArcanistCommitGraph $graph) { | ||||
| $this->graph = $graph; | $this->graph = $graph; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final public function getGraph() { | final public function getGraph() { | ||||
| return $this->graph; | return $this->graph; | ||||
| Show All 21 Lines | final public function withExactHashes(array $hashes) { | ||||
| $this->exactHashes = $hashes; | $this->exactHashes = $hashes; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final protected function getExactHashes() { | final protected function getExactHashes() { | ||||
| return $this->exactHashes; | return $this->exactHashes; | ||||
| } | } | ||||
| final public function withStopAtGCA($stop_gca) { | |||||
| $this->stopAtGCA = $stop_gca; | |||||
| return $this; | |||||
| } | |||||
| final public function setLimit($limit) { | final public function setLimit($limit) { | ||||
| $this->limit = $limit; | $this->limit = $limit; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final protected function getLimit() { | final protected function getLimit() { | ||||
| return $this->limit; | return $this->limit; | ||||
| } | } | ||||
| final public function withEpochRange($min, $max) { | |||||
| $this->minimumEpoch = $min; | |||||
| $this->maximumEpoch = $max; | |||||
| return $this; | |||||
| } | |||||
| final public function getMinimumEpoch() { | |||||
| return $this->minimumEpoch; | |||||
| } | |||||
| final public function getMaximumEpoch() { | |||||
| return $this->maximumEpoch; | |||||
| } | |||||
| final public function getRepositoryAPI() { | final public function getRepositoryAPI() { | ||||
| return $this->getGraph()->getRepositoryAPI(); | return $this->getGraph()->getRepositoryAPI(); | ||||
| } | } | ||||
| abstract public function execute(); | abstract public function execute(); | ||||
| } | } | ||||