Path: blob/master/src/applications/harbormaster/engine/HarbormasterBuildRequest.php
12256 views
<?php12/**3* Structure used to ask Harbormaster to start a build.4*5* Requests to start builds sometimes originate several layers away from where6* they are processed. For example, Herald rules which start builds pass the7* requests through the adapter and then through the editor before they reach8* Harbormaster.9*10* This class is just a thin wrapper around these requests so we can make them11* more complex later without needing to rewrite any APIs.12*/13final class HarbormasterBuildRequest extends Phobject {1415private $buildPlanPHID;16private $initiatorPHID;17private $buildParameters = array();1819public function setBuildPlanPHID($build_plan_phid) {20$this->buildPlanPHID = $build_plan_phid;21return $this;22}2324public function getBuildPlanPHID() {25return $this->buildPlanPHID;26}2728public function setBuildParameters(array $build_parameters) {29$this->buildParameters = $build_parameters;30return $this;31}3233public function getBuildParameters() {34return $this->buildParameters;35}3637public function setInitiatorPHID($phid) {38$this->initiatorPHID = $phid;39return $this;40}4142public function getInitiatorPHID() {43return $this->initiatorPHID;44}4546}474849