Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/phid/PhortunePaymentMethodPHIDType.php
<?php | <?php | ||||
final class PhortunePaymentMethodPHIDType extends PhabricatorPHIDType { | final class PhortunePaymentMethodPHIDType extends PhabricatorPHIDType { | ||||
const TYPECONST = 'PAYM'; | const TYPECONST = 'PAYM'; | ||||
public function getTypeName() { | public function getTypeName() { | ||||
return pht('Phortune Payment Method'); | return pht('Phortune Payment Method'); | ||||
} | } | ||||
public function newObject() { | public function newObject() { | ||||
return new PhortunePaymentMethod(); | return new PhortunePaymentMethod(); | ||||
} | } | ||||
public function getPHIDTypeApplicationClass() { | |||||
return 'PhabricatorPhortuneApplication'; | |||||
} | |||||
protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $phids) { | array $phids) { | ||||
return id(new PhortunePaymentMethodQuery()) | return id(new PhortunePaymentMethodQuery()) | ||||
->withPHIDs($phids); | ->withPHIDs($phids); | ||||
} | } | ||||
Show All 15 Lines |