Failed Conditions
Push — master ( 0c68f2...19e5af )
by Sylvain
03:32
created

OtpType::isValid()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 2
nc 2
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ecodev\Felix\Api\Scalar;
6
7
use GraphQL\Type\Definition\IntType;
8
9
class OtpType extends IntType
10
{
11
    /**
12
     * @var string
13
     */
14
    public $description = 'One time code composed of up to 6 digits';
15
16
    public const MIN_INT = 0;
17
    public const MAX_INT = 999999;
18
}
19