PhoneNumber   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A phone() 0 3 1
A supportsParent() 0 3 1
A fax() 0 3 1
A mobile() 0 3 1
1
<?php
2
3
namespace Knp\FriendlyContexts\Faker\Provider;
4
5
class PhoneNumber extends Base
6
{
7
    public function phone()
8
    {
9
        return $this->parent->phoneNumber();
10
    }
11
12
    public function fax()
13
    {
14
        return $this->parent->phoneNumber();
15
    }
16
17
    public function mobile()
18
    {
19
        return $this->parent->phoneNumber();
20
    }
21
22
    public function supportsParent($parent)
23
    {
24
        return $parent instanceOf \Faker\Provider\PhoneNumber;
25
    }
26
}
27