Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/harbormaster/herald/HarbormasterBuildableAdapterInterface.php
12256 views
1
<?php
2
3
interface HarbormasterBuildableAdapterInterface {
4
5
public function getHarbormasterBuildablePHID();
6
public function getHarbormasterContainerPHID();
7
public function getQueuedHarbormasterBuildRequests();
8
public function queueHarbormasterBuildRequest(
9
HarbormasterBuildRequest $request);
10
11
}
12
13
// TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////
14
15
16
/* -( HarbormasterBuildableAdapterInterface )------------------------------ */
17
/*
18
19
public function getHarbormasterBuildablePHID() {
20
return $this->getObject()->getPHID();
21
}
22
23
public function getHarbormasterContainerPHID() {
24
return null;
25
}
26
27
public function getQueuedHarbormasterBuildPlanPHIDs() {
28
return $this->buildPlanPHIDs;
29
}
30
31
public function queueHarbormasterBuildPlanPHID($phid) {
32
$this->buildPlanPHIDs[] = $phid;
33
}
34
35
*/
36
37