Failed Conditions
Branch feature/refactoring-samurai (8cc7c1)
by Giuliano
03:47
created

EnvNotFoundException::getErrorCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Maestriam\Samurai\Exceptions;
4
5
use Maestriam\Samurai\Exceptions\BaseException;
6
7
class EnvNotFoundException extends BaseException
8
{
9
    const CODE = '0301';
10
11
    /**
12
     * Define as configuração para enviar o exception
13
     *
14
     * @param string $name
15
     */
16
    public function __construct()
17
    {
18
        $this->initialize();
19
    }
20
21
    /**
22
     * {@inheritDoc}
23
     */
24
    public function getErrorMessage(): string
25
    {
26
        return 'File .env not found.';
27
    }
28
29
    /**
30
     * {@inheritDoc}
31
     */
32
    public function getErrorCode(): string
33
    {
34
        return self::CODE;
35
    }
36
}
37
38