Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/phid/NuanceQueuePHIDType.php
<?php | <?php | ||||
final class NuanceQueuePHIDType extends PhabricatorPHIDType { | final class NuanceQueuePHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'NUAQ'; | const TYPECONST = 'NUAQ'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Queue'); | return pht('Queue'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new NuanceQueue(); | return new NuanceQueue(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorNuanceApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new NuanceQueueQuery()) | return id(new NuanceQueueQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 15 Lines |