PhoneNumber   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
A getDefaultKey() 0 4 1
1
<?php
2
namespace Bpost\BpostApiClient\Common\BasicAttribute;
3
4
use Bpost\BpostApiClient\Common\BasicAttribute;
5
use Bpost\BpostApiClient\Exception\BpostLogicException\BpostInvalidLengthException;
6
7
class PhoneNumber extends BasicAttribute
8
{
9
10
    /**
11
     * @throws BpostInvalidLengthException
12
     */
13 4
    public function validate()
14
    {
15 4
        $this->validateLength(20);
16 4
    }
17
18
    /**
19
     * @return string
20
     */
21 4
    protected function getDefaultKey()
22
    {
23 4
        return 'phoneNumber';
24
    }
25
}
26