ImageFileException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
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 image type exception
10
 */
11
class ImageFileException extends InvalidArgumentException
12
{
13
14
	/**
15
	 * @param string $filename
16
	 */
17
	public function __construct($filename)
18
	{
19
		parent::__construct(sprintf('File %s does not exist or it is not an image.', var_export($filename, TRUE)));
20
	}
21
22
}
23