Completed
Branch dev-v3 (d0b49e)
by Propa
01:27
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 1
Bugs 0 Features 0
Metric Value
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 1
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 27
    public static function countryRequired($number)
14
    {
15 27
        return new static(
16 27
            libNumberParseException::INVALID_COUNTRY_CODE,
17 27
            'Country specification for number "' . $number . '" required.'
18
        );
19
    }
20
}