SignerConfig   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 22
ccs 8
cts 8
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrivateKey() 0 3 1
A __construct() 0 5 1
A getPublicKey() 0 3 1
A getPrivateKeyPassword() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Pixidos package.
5
 *
6
 *  (c) Ondra Votava <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 *
11
 */
12
13
declare(strict_types=1);
14
15
namespace Pixidos\GPWebPay\Config;
16
17
class SignerConfig
18
{
19 10
    public function __construct(
20
        private readonly string $privateKey,
21
        private readonly string $privateKeyPassword,
22
        private readonly string $publicKey
23
    ) {
24 10
    }
25
26 17
    public function getPrivateKey(): string
27
    {
28 17
        return $this->privateKey;
29
    }
30
31 17
    public function getPrivateKeyPassword(): string
32
    {
33 17
        return $this->privateKeyPassword;
34
    }
35
36 17
    public function getPublicKey(): string
37
    {
38 17
        return $this->publicKey;
39
    }
40
}
41