TokenConfig::expiration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Auth\Container;
6
7
class TokenConfig
8
{
9
    private $secret;
10
    private $expiration;
11
    private $issuer;
12
13
    public function __construct(string $secret, int $expiration, string $issuer)
14
    {
15
        $this->secret = $secret;
16
        $this->expiration = $expiration;
17
        $this->issuer = $issuer;
18
    }
19
20
    public function secret(): string
21
    {
22
        return $this->secret;
23
    }
24
25
    public function expiration(): int
26
    {
27
        return $this->expiration;
28
    }
29
30
    public function issuer(): string
31
    {
32
        return $this->issuer;
33
    }
34
}
35