Passed
Pull Request — master (#43)
by Arman
03:54
created

EnvException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 3
dl 0
loc 13
rs 10
c 1
b 1
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A fileNotFound() 0 3 1
1
<?php
2
3
/**
4
 * Quantum PHP Framework
5
 *
6
 * An open source software development framework for PHP
7
 *
8
 * @package Quantum
9
 * @author Arman Ag. <[email protected]>
10
 * @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
11
 * @link http://quantum.softberg.org/
12
 * @since 2.5.0
13
 */
14
15
namespace Quantum\Exceptions;
16
17
/**
18
 * Class EnvException
19
 * @package Quantum\Exceptions
20
 */
21
class EnvException extends \Exception
22
{
23
    /**
24
     * Env file is not found
25
     */
26
    const ENV_FILE_NOT_FOUND = 'ENV file not found';
27
28
    /**
29
     * @return \Quantum\Exceptions\EnvException
30
     */
31
    public static function fileNotFound(): EnvException
32
    {
33
        return new static(self::ENV_FILE_NOT_FOUND, E_ERROR);
34
    }
35
}
36