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::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 11
rs 10
cc 1
nc 1
nop 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