4 * Structure used to ask Harbormaster to start a build.
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
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.
14 final class HarbormasterBuildRequest
extends Phobject
{
16 private $buildPlanPHID;
17 private $initiatorPHID;
18 private $buildParameters = array();
20 public function setBuildPlanPHID($build_plan_phid) {
21 $this->buildPlanPHID
= $build_plan_phid;
25 public function getBuildPlanPHID() {
26 return $this->buildPlanPHID
;
29 public function setBuildParameters(array $build_parameters) {
30 $this->buildParameters
= $build_parameters;
34 public function getBuildParameters() {
35 return $this->buildParameters
;
38 public function setInitiatorPHID($phid) {
39 $this->initiatorPHID
= $phid;
43 public function getInitiatorPHID() {
44 return $this->initiatorPHID
;