Completed
Push — master ( 117e7f...523c46 )
by Nate
02:56
created

GetAll   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 26
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 12 1
A getPath() 0 4 1
1
<?php
2
3
namespace Flipbox\Relay\HubSpot\Middleware\ContactLists;
4
5
use Psr\Http\Message\RequestInterface;
6
use Psr\Http\Message\ResponseInterface;
7
8
class GetAll extends AbstractContactList
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    public function __invoke(
14
        RequestInterface $request,
15
        ResponseInterface $response,
16
        callable $next = null
17
    ) {
18
        // Prepare request
19
        $request = $this->prepareUri(
20
            $request->withMethod('GET')
21
        );
22
23
        return $next($request, $response);
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    protected function getPath(): string
30
    {
31
        return "lists";
32
    }
33
}
34