ExceptionBoundary   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of the Linna Csrf Guard.
7
 *
8
 * @author Sebastian Rapetti <[email protected]>
9
 * @copyright (c) 2020, Sebastian Rapetti
10
 * @license http://opensource.org/licenses/MIT MIT License
11
 */
12
13
namespace Linna\CsrfGuard\Exception;
14
15
/**
16
 * Excepiton Boundary
17
 * <p>This class contains constants about expetions limits.</p>
18
 * <p>Will be replaced with enum type when php will support it.</p>
19
 */
20
class ExceptionBoundary
21
{
22
    public const EXPIRE_MIN = 0;
23
    public const EXPIRE_MAX = 86400;
24
25
    public const STORAGE_SIZE_MIN = 2;
26
    public const STORAGE_SIZE_MAX = 64;
27
28
    public const TOKEN_LENGTH_MIN = 16;
29
    public const TOKEN_LENGTH_MAX = 128;
30
31
    /**
32
     * Class constructor.
33
     * <p>Private because this class must no have instances.</p>
34
     * <p>Private make impossible to create instance with the new keyword.</p>
35
     */
36
    private function __construct()
37
    {
38
    }
39
}
40