DirectoryException::__construct()   A
last analyzed

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
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Rostenkowski\Resize\Exceptions;
4
5
6
use InvalidArgumentException;
7
8
/**
9
 * Directory exception
10
 */
11
class DirectoryException extends InvalidArgumentException
12
{
13
14
15
	/**
16
	 * @param string $directory
17
	 */
18
	public function __construct($directory)
19
	{
20
		parent::__construct(sprintf('Directory "%s" does not exist and cannot be created or it is not writable.', var_export($directory, TRUE)));
21
	}
22
23
}
24