Changeset View
Changeset View
Standalone View
Standalone View
src/land/ArcanistLandEngine.php
<?php | <?php | ||||
abstract class ArcanistLandEngine extends Phobject { | abstract class ArcanistLandEngine extends Phobject { | ||||
private $workflow; | private $workflow; | ||||
private $repositoryAPI; | private $repositoryAPI; | ||||
private $targetRemote; | private $targetRemote; | ||||
private $targetOnto; | private $targetOnto; | ||||
private $sourceRef; | private $sourceRef; | ||||
private $commitMessageFile; | private $commitMessageFile; | ||||
private $shouldHold; | private $shouldHold; | ||||
private $shouldKeep; | private $shouldKeep; | ||||
private $shouldSquash; | private $shouldSquash; | ||||
private $shouldDeleteRemote; | private $shouldDeleteRemote; | ||||
private $shouldPreview; | private $shouldPreview; | ||||
private $remoteArgument; | |||||
private $ontoArgument; | |||||
// TODO: This is really grotesque. | // TODO: This is really grotesque. | ||||
private $buildMessageCallback; | private $buildMessageCallback; | ||||
final public function setWorkflow(ArcanistWorkflow $workflow) { | final public function setWorkflow(ArcanistWorkflow $workflow) { | ||||
$this->workflow = $workflow; | $this->workflow = $workflow; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | final public function setCommitMessageFile($commit_message_file) { | ||||
$this->commitMessageFile = $commit_message_file; | $this->commitMessageFile = $commit_message_file; | ||||
return $this; | return $this; | ||||
} | } | ||||
final public function getCommitMessageFile() { | final public function getCommitMessageFile() { | ||||
return $this->commitMessageFile; | return $this->commitMessageFile; | ||||
} | } | ||||
final public function setRemoteArgument($remote_argument) { | |||||
$this->remoteArgument = $remote_argument; | |||||
return $this; | |||||
} | |||||
final public function getRemoteArgument() { | |||||
return $this->remoteArgument; | |||||
} | |||||
final public function setOntoArgument($onto_argument) { | |||||
$this->ontoArgument = $onto_argument; | |||||
return $this; | |||||
} | |||||
final public function getOntoArgument() { | |||||
return $this->ontoArgument; | |||||
} | |||||
abstract public function parseArguments(); | |||||
abstract public function execute(); | abstract public function execute(); | ||||
abstract protected function getLandingCommits(); | abstract protected function getLandingCommits(); | ||||
protected function printLandingCommits() { | protected function printLandingCommits() { | ||||
$logs = $this->getLandingCommits(); | $logs = $this->getLandingCommits(); | ||||
if (!$logs) { | if (!$logs) { | ||||
Show All 34 Lines |