Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/harbormaster/engine/HarbormasterBuildRequest.php
12256 views
1
<?php
2
3
/**
4
* Structure used to ask Harbormaster to start a build.
5
*
6
* Requests to start builds sometimes originate several layers away from where
7
* they are processed. For example, Herald rules which start builds pass the
8
* requests through the adapter and then through the editor before they reach
9
* Harbormaster.
10
*
11
* This class is just a thin wrapper around these requests so we can make them
12
* more complex later without needing to rewrite any APIs.
13
*/
14
final class HarbormasterBuildRequest extends Phobject {
15
16
private $buildPlanPHID;
17
private $initiatorPHID;
18
private $buildParameters = array();
19
20
public function setBuildPlanPHID($build_plan_phid) {
21
$this->buildPlanPHID = $build_plan_phid;
22
return $this;
23
}
24
25
public function getBuildPlanPHID() {
26
return $this->buildPlanPHID;
27
}
28
29
public function setBuildParameters(array $build_parameters) {
30
$this->buildParameters = $build_parameters;
31
return $this;
32
}
33
34
public function getBuildParameters() {
35
return $this->buildParameters;
36
}
37
38
public function setInitiatorPHID($phid) {
39
$this->initiatorPHID = $phid;
40
return $this;
41
}
42
43
public function getInitiatorPHID() {
44
return $this->initiatorPHID;
45
}
46
47
}
48
49