Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/phid/DifferentialDiffPHIDType.php
<?php | <?php | ||||
final class DifferentialDiffPHIDType extends PhabricatorPHIDType { | final class DifferentialDiffPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'DIFF'; | const TYPECONST = 'DIFF'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Differential Diff'); | return pht('Differential Diff'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new DifferentialDiff(); | return new DifferentialDiff(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorDifferentialApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new DifferentialDiffQuery()) | return id(new DifferentialDiffQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 16 Lines |