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

UnknownRequestException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 31
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getType() 0 4 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