Browse files

Rename CreateBillingRequest to generateBillingRequest

  • Loading branch information...
1 parent 4161ae4 commit 1cd245f663a6781a7ac8932b8d4c9f42c8c2306b @iampersistent iampersistent committed Mar 23, 2013
Showing with 12 additions and 9 deletions.
  1. +12 −9 lib/Vespolina/Billing/Manager/BillingManager.php
View
21 lib/Vespolina/Billing/Manager/BillingManager.php
@@ -69,14 +69,6 @@ public function __construct(BillingGatewayInterface $gateway, array $classMappin
}
}
- public function createBillingRequest(BillingAgreementInterface $billingAgreement)
- {
-
- $billingRequest = new $this->billingRequestClass();
-
- return $billingRequest;
- }
-
public function executeBillingRequest(BillingRequestInterface $billingRequest)
{
@@ -96,6 +88,17 @@ public function findBillingAgreementById($id)
->one()
;
}
+
+ /**
+ * @inheritdoc
+ */
+ public function generateBillingRequest(BillingAgreementInterface $billingAgreement)
+ {
+ // todo: retrieve the generate service for this billing agreement and use generator to generate the BR
+ $billingRequest = new $this->billingRequestClass();
+
+ return $billingRequest;
+ }
/**
* @inheritdoc
@@ -340,4 +343,4 @@ public function updateBillingRequest(BillingRequestInterface $billingRequest)
{
$this->gateway->updateBillingRequest($billingRequest);
}
-}
+}

0 comments on commit 1cd245f

Please sign in to comment.