Page MenuHomePhorge

PhortunePaymentMethodPHIDType.php
No OneTemporary

PhortunePaymentMethodPHIDType.php

<?php
final class PhortunePaymentMethodPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'PAYM';
public function getTypeName() {
return pht('Phortune Payment Method');
}
public function newObject() {
return new PhortunePaymentMethod();
}
public function getPHIDTypeApplicationClass() {
return PhabricatorPhortuneApplication::class;
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhortunePaymentMethodQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$method = $objects[$phid];
$handle
->setName($method->getFullDisplayName())
->setURI($method->getURI());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 17:54 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127170
Default Alt Text
PhortunePaymentMethodPHIDType.php (853 B)

Event Timeline