Passed
Pull Request — develop (#46)
by Gergely
02:15
created

CustomerIntelligenceGateway   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLeadScore() 0 7 1
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 1
    public function getLeadScore(InstallationEntity $installationEntity, $body, $token)
22
    {
23 1
        return $this->postDocument(
24 1
            '/v4/installations/' . $installationEntity->getId() . '/lead-score',
25 1
            $body,
26 1
            $token,
27
            'LeadScore'
28 1
        );
29
    }
30
}
31