Passed
Push — master ( ed297f...604ea4 )
by Giuliano
04:39
created

StubNotFoundException::getErrorMessage()   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 Illuminate\Support\Facades\Lang;
6
use Maestriam\Samurai\Exceptions\BaseException;
7
8
class StubNotFoundException extends BaseException
9
{
10
    const CODE = '0401';
11
12
    /**
13
     * Define as configuração para enviar o exception
14
     *
15
     * @param string $type
16
     */
17
    public function __construct(string $type)
18
    {
19
        $this->initialize($type);
20
    }
21
22
    /**
23
     * {@inheritDoc}
24
     */
25
    public function getErrorMessage() : string
26
    {
27
        return 'The stub file [%s] required is not found.';
28
    }
29
30
    /**
31
     * {@inheritDoc}
32
     */
33
    public function getErrorCode() : string
34
    {        
35
        return self::CODE;
36
    }
37
}
38