InvalidWorkingDirectoryException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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