Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/data/DiffusionCommitRef.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | return id(new self()) | ||||
->setAuthorName($author_name) | ->setAuthorName($author_name) | ||||
->setAuthorEmail($author_email) | ->setAuthorEmail($author_email) | ||||
->setCommitterName($committer_name) | ->setCommitterName($committer_name) | ||||
->setCommitterEmail($committer_email) | ->setCommitterEmail($committer_email) | ||||
->setMessage($message) | ->setMessage($message) | ||||
->setHashes($hashes); | ->setHashes($hashes); | ||||
} | } | ||||
public static function newFromConduitResult(array $result) { | |||||
return self::newFromDictionary($result); | |||||
} | |||||
public function setHashes(array $hashes) { | public function setHashes(array $hashes) { | ||||
assert_instances_of($hashes, 'DiffusionCommitHash'); | assert_instances_of($hashes, 'DiffusionCommitHash'); | ||||
$this->hashes = $hashes; | $this->hashes = $hashes; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getHashes() { | public function getHashes() { | ||||
return $this->hashes; | return $this->hashes; | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |