Passed
Pull Request — develop (#46)
by Gergely
03:07 queued 44s
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
* 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