Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/phid/DifferentialRevisionPHIDType.php
<?php | <?php | ||||
final class DifferentialRevisionPHIDType extends PhabricatorPHIDType { | final class DifferentialRevisionPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'DREV'; | const TYPECONST = 'DREV'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Differential Revision'); | return pht('Differential Revision'); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorDifferentialApplication'; | |||||
} | |||||
public function newObject() { | public function newObject() { | ||||
return new DifferentialRevision(); | return new DifferentialRevision(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorDifferentialApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new DifferentialRevisionQuery()) | return id(new DifferentialRevisionQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |