Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / harbormaster / engine / HarbormasterBuildRequest.php
blob71721fdaf2710f7f9263c6e9fd3a7443be23c594
1 <?php
3 /**
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
9 * Harbormaster.
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;
22 return $this;
25 public function getBuildPlanPHID() {
26 return $this->buildPlanPHID;
29 public function setBuildParameters(array $build_parameters) {
30 $this->buildParameters = $build_parameters;
31 return $this;
34 public function getBuildParameters() {
35 return $this->buildParameters;
38 public function setInitiatorPHID($phid) {
39 $this->initiatorPHID = $phid;
40 return $this;
43 public function getInitiatorPHID() {
44 return $this->initiatorPHID;