Completed
Push — master ( 3c24ea...404feb )
by Sam
02:45
created

UnknownRequestException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Jalle19\StatusManager\Exception;
4
5
/**
6
 * Class UnknownRequestException
7
 * @package   Jalle19\StatusManager\Exception
8
 * @copyright Copyright &copy; Sam Stenvall 2016-
9
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
10
 */
11
class UnknownRequestException extends BaseException
12
{
13
14
	/**
15
	 * @var string
16
	 */
17
	private $_type;
18
19
20
	/**
21
	 * UnknownRequestException constructor.
22
	 *
23
	 * @param string $type
24
	 */
25 1
	public function __construct($type)
26
	{
27 1
		parent::__construct();
28
29 1
		$this->_type = $type;
30 1
	}
31
32
33
	/**
34
	 * @return string
35
	 */
36 1
	public function getType()
37
	{
38 1
		return $this->_type;
39
	}
40
	
41
}
42