Completed
Push — develop ( 9aa9c5...e704a3 )
by Abdelrahman
01:55
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
declare(strict_types=1);
17
18
namespace Rinvex\Country;
19
20
use Exception;
21
22
class CountryLoaderException extends Exception
23
{
24
    /**
25
     * Create a new exception instance.
26
     *
27
     * @return static
28
     */
29
    public static function invalidCountry()
30
    {
31
        return new static('Country code may be misspelled, invalid, or data not found on server!');
32
    }
33
}
34