AbstractAuthConfig::setExpireSeconds()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zored\Telegram\Madeline\Config\Auth;
6
7
abstract class AbstractAuthConfig implements AuthConfigInterface
8
{
9
    /**
10
     * @var bool
11
     */
12
    private $handleUpdates = false;
13
14
    /**
15
     * @var int
16
     */
17
    private $expireSeconds = 86400;
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getExpireSeconds(): int
23
    {
24
        return $this->expireSeconds;
25
    }
26
27
    public function setExpireSeconds(int $expireSeconds): self
28
    {
29
        $this->expireSeconds = $expireSeconds;
30
31
        return $this;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function isHandleUpdates(): bool
38
    {
39
        return $this->handleUpdates;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function setHandleUpdates(bool $handleUpdates): AuthConfigInterface
46
    {
47
        $this->handleUpdates = $handleUpdates;
48
49
        return $this;
50
    }
51
}
52