Completed
Push — master ( 481c33...0c5dca )
by Nate
04:03
created

Create   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
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 26
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

1 Method

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