GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Monobank   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 10
c 1
b 0
f 0
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Monobank;
6
7
use Monobank\Request\Bank;
8
use Monobank\Request\Personal;
9
use GuzzleHttp\Client;
10
11
final class Monobank
12
{
13
    private static $baseUrl = 'https://api.monobank.ua';
14
15
    /**
16
     * @var Personal
17
     */
18
    public $personal;
19
20
    /**
21
     * @var Bank
22
     */
23
    public $bank;
24
25
    public function __construct(?string $accessToken = null)
26
    {
27
        $client = new Client([
28
            'base_uri' => self::$baseUrl,
29
            'headers' => [
30
                'X-Token' => $accessToken,
31
            ],
32
        ]);
33
34
        $this->personal = new Personal($client);
35
        $this->bank = new Bank($client);
36
    }
37
}
38