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