SignerConfig::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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