Passed
Pull Request — master (#7)
by Lucas
02:16
created

SubscriptionEndpointV2   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A notify() 0 3 1
1
<?php
2
3
namespace Ipag\Sdk\Endpoint;
4
5
use Ipag\Sdk\Core\Endpoint;
6
use Ipag\Sdk\Http\Response;
7
8
/**
9
 * SubscriptionEndpoint class
10
 *
11
 * Classe responsável pelo controle dos endpoints do recurso Subscription versão `2`.
12
 */
13
class SubscriptionEndpointV2 extends Endpoint
14
{
15
    protected string $location = '/service/v2/subscription';
16
17
    /**
18
     * Endpoint para envio de email de cobrança ao cliente.
19
     *
20
     * @param int $subscription_id
21
     * @return Response
22
     */
23
    public function notify(int $subscription_id): Response
24
    {
25
        return $this->_POST([], [], [], "/$subscription_id/notify");
26
    }
27
}