Passed
Pull Request — develop (#46)
by Gergely
03:35
created

CustomerIntelligenceGateway   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 17
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 array $body
16
     * @param string $token
17
     * @return array
18
     * @throws \WNowicki\Generic\Exception
19
     */
20 1
    public function performLeadScore($installation, array $body, $token)
21
    {
22 1
        return $this->postDocument(
23 1
            '/v4/installations/' . $installation . '/lead-score',
24 1
            $body,
25 1
            $token,
26
            'LeadScore'
27 1
        );
28
    }
29
}
30