Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/phid/DivinerAtomPHIDType.php
| <?php | <?php | ||||
| final class DivinerAtomPHIDType extends PhabricatorPHIDType { | final class DivinerAtomPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'ATOM'; | const TYPECONST = 'ATOM'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Diviner Atom'); | return pht('Diviner Atom'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new DivinerLiveSymbol(); | return new DivinerLiveSymbol(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorDivinerApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new DivinerAtomQuery()) | return id(new DivinerAtomQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| Show All 23 Lines | |||||