3 final class PhortuneAdHocProduct
extends PhortuneProductImplementation
{
7 public function loadImplementationsForRefs(
8 PhabricatorUser
$viewer,
12 foreach ($refs as $key => $ref) {
13 $product = new PhortuneAdHocProduct();
15 $results[$key] = $product;
21 public function getRef() {
25 public function getName(PhortuneProduct
$product) {
26 return pht('Ad-Hoc Product');
29 public function getPurchaseName(
30 PhortuneProduct
$product,
31 PhortunePurchase
$purchase) {
34 $purchase->getMetadataValue('adhoc.name'),
35 $this->getName($product));
38 public function getPriceAsCurrency(PhortuneProduct
$product) {
39 return PhortuneCurrency
::newEmptyCurrency();