Completed
Pull Request — develop (#46)
by Gergely
04:26
created

CustomerIntelligenceGateway::getLeadScore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
namespace PayBreak\Sdk\Gateways;
4
5
use PayBreak\Sdk\Entities\InstallationEntity;
6
7
/**
8
 * Customer Intelligence Gateway
9
 *
10
 * @author GK
11
 */
12
class CustomerIntelligenceGateway extends AbstractGateway
13
{
14
    /**
15
     * @author GK
16
     * @param InstallationEntity $installationEntity
17
     * @param $token
18
     * @return array
19
     * @throws \WNowicki\Generic\Exception
20
     */
21
    public function getLeadScore(InstallationEntity $installationEntity, $body, $token)
22
    {
23
        return $this->postDocument(
24
            '/v4/installations/' . $installationEntity->getId() . '/lead-score',
25
            $body,
26
            $token,
27
            'LeadScore'
28
        );
29
    }
30
}
31