InvalidCacheDirectoryException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Rostenkowski\Resize\Exceptions;
4
5
6
use InvalidArgumentException;
7
8
/**
9
 * Invalid cache directory exception
10
 *
11
 * It's thrown when user attempts to use the same directory for the storage AND the cache.
12
 */
13
class InvalidCacheDirectoryException extends InvalidArgumentException
14
{
15
16
17
	/**
18
	 * @param string $directory
19
	 */
20
	public function __construct($directory)
21
	{
22
		parent::__construct(sprintf('You cannot use the same directory for the image cache as for the storage. Path: (%s)', var_export($directory, TRUE)));
23
	}
24
25
}
26