Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryCommit.php
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | final class PhabricatorRepositoryCommit | ||||
} | } | ||||
public function attachCommitData( | public function attachCommitData( | ||||
PhabricatorRepositoryCommitData $data = null) { | PhabricatorRepositoryCommitData $data = null) { | ||||
$this->commitData = $data; | $this->commitData = $data; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function hasCommitData() { | |||||
return ($this->commitData !== self::ATTACHABLE) && | |||||
($this->commitData !== null); | |||||
} | |||||
public function getCommitData() { | public function getCommitData() { | ||||
return $this->assertAttached($this->commitData); | return $this->assertAttached($this->commitData); | ||||
} | } | ||||
public function attachAudits(array $audits) { | public function attachAudits(array $audits) { | ||||
assert_instances_of($audits, 'PhabricatorRepositoryAuditRequest'); | assert_instances_of($audits, 'PhabricatorRepositoryAuditRequest'); | ||||
$this->audits = $audits; | $this->audits = $audits; | ||||
return $this; | return $this; | ||||
▲ Show 20 Lines • Show All 780 Lines • Show Last 20 Lines |