Completed
Push — master ( 0c0d2f...7c0457 )
by Nate
04:27
created

RemoveContact   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 32
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaultSegments() 0 15 1
1
<?php
2
3
namespace Flipbox\Relay\HubSpot\Segment\Companies;
4
5
use Flipbox\Relay\HubSpot\Middleware\Companies\RemoveContact as RemoveContactMiddleware;
6
use Flipbox\Relay\HubSpot\Middleware\Client;
7
use Flipbox\Relay\Segments\AbstractSegment;
8
9
class RemoveContact extends AbstractSegment
10
{
11
12
    /**
13
     * @var int
14
     */
15
    public $id;
16
17
    /**
18
     * @var int
19
     */
20
    public $contactId;
21
22
    /**
23
     * @return array
24
     */
25
    protected function defaultSegments(): array
26
    {
27
        return [
28
            'uri' => [
29
                'class' => RemoveContactMiddleware::class,
30
                'id' => $this->id,
31
                'contactId' => $this->contactId,
32
                'logger' => $this->getLogger()
33
            ],
34
            'client' => [
35
                'class' => Client::class,
36
                'logger' => $this->getLogger()
37
            ]
38
        ];
39
    }
40
}
41