Changeset View
Changeset View
Standalone View
Standalone View
src/land/ArcanistLandCommit.php
<?php | <?php | ||||
final class ArcanistLandCommit | final class ArcanistLandCommit | ||||
extends Phobject { | extends Phobject { | ||||
private $hash; | private $hash; | ||||
private $summary; | private $summary; | ||||
private $displaySummary; | private $displaySummary; | ||||
private $parents; | private $parents; | ||||
private $explicitRevisionRef; | private $explicitRevisionRef; | ||||
private $revisionRef = false; | private $revisionRef = false; | ||||
private $parentCommits; | private $parentCommits; | ||||
private $isHeadCommit; | private $isHeadCommit; | ||||
private $isImplicitCommit; | private $isImplicitCommit; | ||||
private $relatedRevisionRefs = array(); | |||||
private $directSymbols = array(); | private $directSymbols = array(); | ||||
private $indirectSymbols = array(); | private $indirectSymbols = array(); | ||||
public function setHash($hash) { | public function setHash($hash) { | ||||
$this->hash = $hash; | $this->hash = $hash; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | private function newRevisionRef() { | ||||
if ($parent_refs) { | if ($parent_refs) { | ||||
return head($parent_refs); | return head($parent_refs); | ||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
public function setRelatedRevisionRefs(array $refs) { | |||||
assert_instances_of($refs, 'ArcanistRevisionRef'); | |||||
$this->relatedRevisionRefs = $refs; | |||||
return $this; | |||||
} | |||||
public function getRelatedRevisionRefs() { | |||||
return $this->relatedRevisionRefs; | |||||
} | |||||
} | } |