Completed
Push — master ( 9a3118...4c04b8 )
by Nate
03:50
created

Create::defaultSegments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 0
cts 14
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Flipbox\Relay\HubSpot\Segment\Companies;
4
5
use Flipbox\Relay\HubSpot\Middleware\Companies\Create as CompanyCreateMiddleware;
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' => CompanyCreateMiddleware::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