Differential D7368 Diff 16627 src/applications/harbormaster/storage/configuration/HarbormasterBuildStep.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/configuration/HarbormasterBuildStep.php
- This file was added.
<?php | |||||
final class HarbormasterBuildStep extends HarbormasterDAO { | |||||
protected $buildPlanPHID; | |||||
private $buildPlan = self::ATTACHABLE; | |||||
public function getConfiguration() { | |||||
return array( | |||||
self::CONFIG_AUX_PHID => true, | |||||
) + parent::getConfiguration(); | |||||
} | |||||
public function generatePHID() { | |||||
return PhabricatorPHID::generateNewPHID( | |||||
HarbormasterPHIDTypeBuildStep::TYPECONST); | |||||
} | |||||
public function attachBuildPlan(HarbormasterBuildPlan $plan) { | |||||
$this->buildPlan = $plan; | |||||
return $this; | |||||
} | |||||
public function getBuildPlan() { | |||||
return $this->assertAttached($this->buildPlan); | |||||
} | |||||
} |