Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/phid/HarbormasterBuildStepPHIDType.php
<?php | <?php | ||||
final class HarbormasterBuildStepPHIDType extends PhabricatorPHIDType { | final class HarbormasterBuildStepPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'HMCS'; | const TYPECONST = 'HMCS'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Build Step'); | return pht('Build Step'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new HarbormasterBuildStep(); | return new HarbormasterBuildStep(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorHarbormasterApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new HarbormasterBuildStepQuery()) | return id(new HarbormasterBuildStepQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 19 Lines |