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

CustomerIntelligenceGateway::performLeadScore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 3
dl 0
loc 7
ccs 5
cts 5
cp 1
crap 1
rs 10
c 0
b 0
f 0
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