QueryNotSupportedException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
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