Completed
Push — master ( c6f3bd...788fbc )
by
unknown
02:44
created

BelboonEx   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A login() 0 11 1
1
<?php
2
/**
3
 * Copyright (c) Padosoft.com 2017.
4
 */
5
namespace Padosoft\AffiliateNetwork;
6
use Oara\Network\Publisher\Belboon as BelboonOara;
7
8
class BelboonEx extends BelboonOara
9
{
10
    /**
11
     * @param $credentials
12
     */
13
    public function login($credentials)
14
    {
15
        $user = $credentials['user'];
16
        $password = $credentials['apipassword'];
17
        $this->_platformList = array(['id' => $credentials['id_site']]);
18
19
        $this->_client = new \SoapClient('http://api.belboon.com/?wsdl', array('login' => $user, 'password' => $password, 'trace' => true));
20
        $this->_client->getAccountInfo();
21
22
        return true;
23
    }
24
25
26
}