Passed
Push — main ( c6a2d9...86dad5 )
by Breno
01:53
created

StopSign   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 5
c 2
b 1
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A allowed() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace BrenoRoosevelt\Validation;
5
6
final class StopSign
7
{
8
    const DONT_STOP = 0;
9
    const SAME_FIELD = 1;
10
    const ALL = 2;
11
12
    public static function allowed(): array
13
    {
14
        return [self::DONT_STOP, self::SAME_FIELD, self::ALL];
15
    }
16
17
    /** @codeCoverageIgnore */
18
    private function __construct()
19
    {
20
    }
21
}
22