Passed
Push — master ( d8dce2...145ba7 )
by Panagiotis
02:43
created

InvalidCompilePath::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Author: panosru
7
 * Date: 23/04/2018
8
 * Time: 21:26
9
 */
10
11
namespace Omega\FaultManager\Exceptions;
12
13
use Omega\FaultManager\Abstracts\FaultManagerException as AFaultManagerException;
14
15
/**
16
 * Class InvalidCompilePath
17
 * @package Omega\FaultManager\Exceptions
18
 */
19
class InvalidCompilePath extends AFaultManagerException
20
{
21
    /** @var int */
22
    protected $code = 66004;
23
24
    /** @var string */
25
    protected $message = 'Path "%s" does not exist or is not writable.';
26
27
    /**
28
     * InvalidCompilePath constructor.
29
     * @param string $path
30
     */
31
    public function __construct(string $path)
32
    {
33
        $this->arguments[] = $path;
34
35
        parent::__construct();
36
    }
37
}
38