Differential D14068 Diff 34734 src/applications/harbormaster/phid/HarbormasterBuildTargetPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/phid/HarbormasterBuildTargetPHIDType.php
| <?php | <?php | ||||
| final class HarbormasterBuildTargetPHIDType extends PhabricatorPHIDType { | final class HarbormasterBuildTargetPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'HMBT'; | const TYPECONST = 'HMBT'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Build Target'); | return pht('Build Target'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new HarbormasterBuildTarget(); | return new HarbormasterBuildTarget(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorHarbormasterApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new HarbormasterBuildTargetQuery()) | return id(new HarbormasterBuildTargetQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| Show All 21 Lines | |||||