Completed
Push — master ( 77ccc6...f13dc8 )
by Propa
05:09
created

NumberParseException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A countryRequired() 0 7 1
1
<?php namespace Propaganistas\LaravelPhone\Exceptions;
2
3
use libphonenumber\NumberParseException as libNumberParseException;
4
5
class NumberParseException extends libNumberParseException
6
{
7
    /**
8
     * Country specification required static constructor.
9
     *
10
     * @param string $number
11
     * @return static
12
     */
13 24
    public static function countryRequired($number)
14
    {
15 24
        return new static(
16 24
            libNumberParseException::INVALID_COUNTRY_CODE,
17 24
            'Country specification for number "' . $number . '" required.'
18 8
        );
19
    }
20
}