Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / phortune / subscription / PhortuneSubscriptionImplementation.php
bloba337551c8dbee2ee94a0c5ed8e5d36fbede800f6
1 <?php
3 abstract class PhortuneSubscriptionImplementation extends Phobject {
5 abstract public function loadImplementationsForRefs(
6 PhabricatorUser $viewer,
7 array $refs);
9 abstract public function getRef();
10 abstract public function getName(PhortuneSubscription $subscription);
12 public function getFullName(PhortuneSubscription $subscription) {
13 return $this->getName($subscription);
16 public function getCrumbName(PhortuneSubscription $subscription) {
17 return $this->getName($subscription);
20 abstract public function getCostForBillingPeriodAsCurrency(
21 PhortuneSubscription $subscription,
22 $start_epoch,
23 $end_epoch);
25 public function shouldInvoiceForBillingPeriod(
26 PhortuneSubscription $subscription,
27 $start_epoch,
28 $end_epoch) {
29 return true;
32 public function getCartName(
33 PhortuneSubscription $subscription,
34 PhortuneCart $cart) {
35 return pht('Subscription');
38 public function getPurchaseName(
39 PhortuneSubscription $subscription,
40 PhortuneProduct $product,
41 PhortunePurchase $purchase) {
42 return $product->getProductName();
45 public function getPurchaseURI(
46 PhortuneSubscription $subscription,
47 PhortuneProduct $product,
48 PhortunePurchase $purchase) {
49 return null;
52 public function didPurchaseProduct(
53 PhortuneSubscription $subscription,
54 PhortuneProduct $product,
55 PhortunePurchase $purchase) {
56 return null;