QueryNotSupportedException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getQueryDescription() 0 3 1
1
<?php
2
3
namespace Wikibase\QueryEngine;
4
5
use Ask\Language\Description\Description;
6
use Exception;
7
8
/**
9
 * @since 0.1
10
 *
11
 * @file
12
 * @ingroup WikibaseQueryStore
13
 *
14
 * @licence GNU GPL v2+
15
 * @author Jeroen De Dauw < [email protected] >
16
 */
17
class QueryNotSupportedException extends QueryEngineException {
18
19
	private $queryDescription;
20
21
	public function __construct( Description $queryDescription, $message = '', Exception $previous = null ) {
22
		$this->queryDescription = $queryDescription;
23
24
		parent::__construct( $message, 0, $previous );
25
	}
26
27
	/**
28
	 * @return Description
29
	 */
30
	public function getQueryDescription() {
31
		return $this->queryDescription;
32
	}
33
34
}
35