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

PaymentLinksEndpointV2   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A list() 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
 * PaymentLinksEndpoint class
10
 *
11
 * Classe responsável pelo controle dos endpoints do recurso Payment Links versão `2`.
12
 */
13
class PaymentLinksEndpointV2 extends Endpoint
14
{
15
    protected string $location = '/service/v2/payment_links';
16
17
    /**
18
     * Endpoint para listar recursos `Payment Link`
19
     *
20
     * @param array|null $filters
21
     * @return Response
22
     */
23
    public function list(?array $filters = []): Response
24
    {
25
        return $this->_GET($filters ?? []);
26
    }
27
}