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