Passed
Pull Request — develop (#46)
by Gergely
02:05
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
* This file is part of the PayBreak/paybreak-sdk-php package.
4
*
5
* (c) PayBreak <[email protected]>
6
*
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
9
*/
10
11
namespace PayBreak\Sdk\Gateways;
12
13
/**
14
 * Customer Intelligence Gateway
15
 *
16
 * @author GK
17
 */
18
class CustomerIntelligenceGateway extends AbstractGateway
19
{
20
    /**
21
     * @author GK
22
     * @param string $installation
23
     * @param array $body
24
     * @param string $token
25
     * @return array
26
     * @throws \WNowicki\Generic\Exception
27
     */
28 1
    public function performLeadScore($installation, array $body, $token)
29
    {
30 1
        return $this->postDocument(
31 1
            '/v4/installations/' . $installation . '/lead-score',
32 1
            $body,
33 1
            $token,
34
            'LeadScore'
35 1
        );
36
    }
37
}
38