InvalidWorkingDirectoryException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * File InvalidWorkingDirectoryException.php
4
 *
5
 * @author Edward Pfremmer <[email protected]>
6
 */
7
namespace Epfremme\ProcessQueue\Process\Exception;
8
9
/**
10
 * Class InvalidWorkingDirectoryException
11
 *
12
 * @package Epfremme\ProcessQueue\Process\Exception
13
 */
14
class InvalidWorkingDirectoryException extends \InvalidArgumentException
15
{
16
    /**
17
     * InvalidWorkingDirectoryException constructor
18
     *
19
     * @param string|\SplFileInfo $directory
20
     */
21 3
    public function __construct($directory)
22
    {
23 3
        $message = sprintf('Directory %s does not exist', $directory);
24
25 3
        parent::__construct($message);
26 3
    }
27
}
28