Core   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Samerior\MobileMoney\Mpesa\Library;
4
5
use GuzzleHttp\ClientInterface;
6
7
/**
8
 * Class Core
9
 *
10
 * @package Samerior\MobileMoney\Mpesa\Library
11
 */
12
class Core
13
{
14
    /**
15
     * @var ClientInterface
16
     */
17
    public $client;
18
    /**
19
     * @var Authenticator
20
     */
21
    public $auth;
22
23
    /**
24
     * Core constructor.
25
     *
26
     * @param  ClientInterface $client
27
     * @throws \Samerior\MobileMoney\Mpesa\Exceptions\MpesaException
28
     */
29 2
    public function __construct(ClientInterface $client)
30
    {
31 2
        $this->client = $client;
32 2
        $this->auth = new Authenticator($this);
33 2
    }
34
}
35