Passed
Push — b2.0.0 ( bb1327...3f7ded )
by Sebastian
02:29
created

ExceptionBoundary::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 0
c 1
b 0
f 1
dl 0
loc 2
ccs 0
cts 1
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * Linna Cross-site Request Forgery Guard
5
 *
6
 * @author Sebastian Rapetti <[email protected]>
7
 * @copyright (c) 2020, Sebastian Rapetti
8
 * @license http://opensource.org/licenses/MIT MIT License
9
 */
10
declare(strict_types=1);
11
12
namespace Linna\CsrfGuard\Exception;
13
14
/**
15
 * Excepiton Boundary
16
 * This class contains constants about expetions limits.
17
 * Will be replaced with enum type when php will support it.
18
 */
19
class ExceptionBoundary
20
{
21
    public const EXPIRE_MIN = 0;
22
    public const EXPIRE_MAX = 86400;
23
24
    public const STORAGE_SIZE_MIN = 2;
25
    public const STORAGE_SIZE_MAX = 64;
26
27
    public const TOKEN_LENGHT_MIN = 16;
28
    public const TOKEN_LENGHT_MAX = 128;
29
30
    /**
31
     * Class constructor.
32
     * Private because this class must no have instances.
33
     * Private make impossible to create instance with the new keyword.
34
     */
35
    private function __construct()
36
    {
37
    }
38
}
39