Completed
Pull Request — develop (#46)
by Gergely
02:22
created

CustomerIntelligenceGateway   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A performLeadScore() 0 7 1
1
<?php
2
3
namespace PayBreak\Sdk\Gateways;
4
5
/**
6
 * Customer Intelligence Gateway
7
 *
8
 * @author GK
9
 */
10
class CustomerIntelligenceGateway extends AbstractGateway
11
{
12
    /**
13
     * @author GK
14
     * @param string $installation
15
     * @param string $token
16
     * @return array
17
     * @throws \WNowicki\Generic\Exception
18
     */
19 1
    public function performLeadScore($installation, $body, $token)
20
    {
21 1
        return $this->postDocument(
22 1
            '/v4/installations/' . $installation . '/lead-score',
23 1
            $body,
24 1
            $token,
25
            'LeadScore'
26 1
        );
27
    }
28
}
29