Completed
Push — phoneNumberMatcher ( 6b28c4 )
by Joshua
18:40
created

Leniency   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 4
dl 0
loc 22
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A POSSIBLE() 0 4 1
A VALID() 0 4 1
A STRICT_GROUPING() 0 4 1
A EXACT_GROUPING() 0 4 1
1
<?php
2
3
namespace libphonenumber;
4
5
use libphonenumber\Leniency\Possible;
6
use libphonenumber\Leniency\StrictGrouping;
7
use libphonenumber\Leniency\Valid;
8
use libphonenumber\Leniency\ExactGrouping;
9
10
class Leniency
11
{
12
    public static function POSSIBLE()
13
    {
14
        return new Possible;
15
    }
16
17
    public static function VALID()
18
    {
19
        return new Valid;
20
    }
21
22
    public static function STRICT_GROUPING()
23
    {
24
        return new StrictGrouping;
25
    }
26
27
    public static function EXACT_GROUPING()
28
    {
29
        return new ExactGrouping;
30
    }
31
}
32