Completed
Push — develop ( 81e696...4829a8 )
by Abdelrahman
08:45
created

CountryLoaderException::invalidCountry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * NOTICE OF LICENSE
5
 *
6
 * Part of the Rinvex Country Package.
7
 *
8
 * This source file is subject to The MIT License (MIT)
9
 * that is bundled with this package in the LICENSE file.
10
 *
11
 * Package: Rinvex Country Package
12
 * License: The MIT License (MIT)
13
 * Link:    https://rinvex.com
14
 */
15
16
namespace Rinvex\Country\Exceptions;
17
18
use Exception;
19
20
class CountryLoaderException extends Exception
21
{
22
    /**
23
     * Create a new exception instance.
24
     *
25
     * @return static
26
     */
27
    public static function invalidCountry()
28
    {
29
        return new static('Country code may be misspelled, invalid, or data not found on server!');
30
    }
31
}
32