ClassNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace Mocktainer;
4
5
class ClassNotFoundException extends \Exception
6
{
7
8
	/** @var string */
9
	private $className;
10
11
	public function __construct(string $className)
12
	{
13
		parent::__construct(sprintf('Class %s not found', $className));
14
		$this->className = $className;
15
	}
16
17
	public function getClassName(): string
18
	{
19
		return $this->className;
20
	}
21
22
}
23