NumberValidatorInterface
last analyzed

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
isValid() 0 1 ?
1
<?php
2
3
namespace Tdn\PhpTypes\Math;
4
5
/**
6
 * Interface NumberValidatorInterface.
7
 */
8
interface NumberValidatorInterface
9
{
10
    /**
11
     * Ensures scalar variable is a number.
12
     *
13
     * @param mixed $number
14
     *
15
     * @return bool
16
     */
17
    public function isValid($number): bool;
18
}
19