Renderable_float   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\VeeValidate\Renderable;
4
5
use Formularium\Field;
6
use Formularium\HTMLNode;
7
use Formularium\Frontend\VeeValidate\Renderable;
8
9
class Renderable_float extends Renderable
10
{
11
    protected function rules($value, Field $field, HTMLNode $input): array
12
    {
13
        return ['double' => true];
14
    }
15
}
16