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

StopSign::allowed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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