Test Failed
Push — master ( 30bcee...994f97 )
by Smoren
02:25
created

FloatRule::infinite()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
ccs 5
cts 5
cp 1
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Smoren\Validator\Rules;
6
7
use Smoren\Validator\Interfaces\FloatRuleInterface;
8
9
class FloatRule extends NumericRule implements FloatRuleInterface
10
{
11
    /**
12
     * @param string $name
13
     */
14
    public function __construct(string $name)
15
    {
16 48
        MixedRule::__construct($name);
17
        $this->float();
18 48
    }
19
}
20