Core::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
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