Client::getSecret()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace kalanis\OAuth2\Storage\Clients;
4
5
6
/**
7
 * OAuth2 base client caret
8
 * @package kalanis\OAuth2\Storage\Clients
9
 */
10 1
class Client implements IClient
11
{
12
13 1
    public function __construct(
14
        private readonly string|int $id,
15
        #[\SensitiveParameter] private readonly string $secret,
16
        private readonly string $redirectUrl,
17
    )
18
    {
19 1
    }
20
21
    public function getId(): string|int
22
    {
23 1
        return $this->id;
24
    }
25
26
    public function getRedirectUrl(): string
27
    {
28
        return $this->redirectUrl;
29
    }
30
31
    public function getSecret(): string
32
    {
33 1
        return $this->secret;
34
    }
35
}
36