Completed
Pull Request — develop (#46)
by Gergely
02:22
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 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