Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/phid/HeraldRulePHIDType.php
<?php | <?php | ||||
final class HeraldRulePHIDType extends PhabricatorPHIDType { | final class HeraldRulePHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'HRUL'; | const TYPECONST = 'HRUL'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Herald Rule'); | return pht('Herald Rule'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new HeraldRule(); | return new HeraldRule(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorHeraldApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new HeraldRuleQuery()) | return id(new HeraldRuleQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |