| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class SubscriptionsApi extends PayPalApi |
||
| 12 | { |
||
| 13 | 1 | public function getSubscription(string $id): PayPalResponse |
|
| 14 | { |
||
| 15 | 1 | $this->client->prepareRequest('GET', $this->baseUri . '/v1/billing/subscriptions/' . $id); |
|
| 16 | 1 | $this->setAuthentication(); |
|
| 17 | |||
| 18 | 1 | return new GetResponse($this->client->execute()); |
|
| 19 | } |
||
| 20 | |||
| 21 | 3 | public function createSubscription(StoreSubscriptionRequest $subscriptionRequest): PayPalResponse |
|
| 27 | } |
||
| 28 | } |
||
| 29 |