Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php abstract class PhortuneSubscriptionImplementation extends Phobject { abstract pu..

Decoded Output download

<?php

abstract class PhortuneSubscriptionImplementation extends Phobject {

  abstract public function loadImplementationsForRefs(
    PhabricatorUser $viewer,
    array $refs);

  abstract public function getRef();
  abstract public function getName(PhortuneSubscription $subscription);

  public function getFullName(PhortuneSubscription $subscription) {
    return $this->getName($subscription);
  }

  public function getCrumbName(PhortuneSubscription $subscription) {
    return $this->getName($subscription);
  }

  abstract public function getCostForBillingPeriodAsCurrency(
    PhortuneSubscription $subscription,
    $start_epoch,
    $end_epoch);

  public function shouldInvoiceForBillingPeriod(
    PhortuneSubscription $subscription,
    $start_epoch,
    $end_epoch) {
    return true;
  }

  public function getCartName(
    PhortuneSubscription $subscription,
    PhortuneCart $cart) {
    return pht('Subscription');
  }

  public function getPurchaseName(
    PhortuneSubscription $subscription,
    PhortuneProduct $product,
    PhortunePurchase $purchase) {
    return $product->getProductName();
  }

  public function getPurchaseURI(
    PhortuneSubscription $subscription,
    PhortuneProduct $product,
    PhortunePurchase $purchase) {
    return null;
  }

  public function didPurchaseProduct(
    PhortuneSubscription $subscription,
    PhortuneProduct $product,
    PhortunePurchase $purchase) {
    return null;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class PhortuneSubscriptionImplementation extends Phobject {

  abstract public function loadImplementationsForRefs(
    PhabricatorUser $viewer,
    array $refs);

  abstract public function getRef();
  abstract public function getName(PhortuneSubscription $subscription);

  public function getFullName(PhortuneSubscription $subscription) {
    return $this->getName($subscription);
  }

  public function getCrumbName(PhortuneSubscription $subscription) {
    return $this->getName($subscription);
  }

  abstract public function getCostForBillingPeriodAsCurrency(
    PhortuneSubscription $subscription,
    $start_epoch,
    $end_epoch);

  public function shouldInvoiceForBillingPeriod(
    PhortuneSubscription $subscription,
    $start_epoch,
    $end_epoch) {
    return true;
  }

  public function getCartName(
    PhortuneSubscription $subscription,
    PhortuneCart $cart) {
    return pht('Subscription');
  }

  public function getPurchaseName(
    PhortuneSubscription $subscription,
    PhortuneProduct $product,
    PhortunePurchase $purchase) {
    return $product->getProductName();
  }

  public function getPurchaseURI(
    PhortuneSubscription $subscription,
    PhortuneProduct $product,
    PhortunePurchase $purchase) {
    return null;
  }

  public function didPurchaseProduct(
    PhortuneSubscription $subscription,
    PhortuneProduct $product,
    PhortunePurchase $purchase) {
    return null;
  }

}

Function Calls

None

Variables

None

Stats

MD5 ac1a3ce7311ca96b9bc15e56b3381c0d
Eval Count 0
Decode Time 94 ms