InvalidCompilePath::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
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