GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( af5c14...fdf4f1 )
by Florian
03:21
created

Query   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 5
Bugs 1 Features 2
Metric Value
wmc 4
c 5
b 1
f 2
lcom 0
cbo 0
dl 0
loc 55
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getSearchTerm() 0 3 1
A getFacets() 0 3 1
A getUsedFacets() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Stinger Entity Search package.
5
 *
6
 * (c) Oliver Kotte <[email protected]>
7
 * (c) Florian Meyer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
namespace StingerSoft\EntitySearchBundle\Model;
13
14
class Query {
15
16
	/**
17
	 *
18
	 * @var string
19
	 */
20
	private $term;
21
22
	/**
23
	 *
24
	 * @var string[string]
25
	 */
26
	private $facets = array();
27
28
	/**
29
	 *
30
	 * @var string[]
31
	 */
32
	private $usedFacets = null;
33
34
	/**
35
	 *
36
	 * @param string $term        	
37
	 * @param string[string] $facets        	
0 ignored issues
show
Documentation introduced by
The doc-type string[string] could not be parsed: Expected "]" at position 2, but found "string". (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
38
	 * @param string[] $usedFacets        	
39
	 */
40
	public function __construct($term, array $facets = array(), $usedFacets) {
0 ignored issues
show
Unused Code introduced by
The parameter $facets is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $usedFacets is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
41
		$this->term = $term;
42
	}
43
44
	/**
45
	 * Get the search term
46
	 *
47
	 * @return string Returns the search term
48
	 */
49
	public function getSearchTerm() {
50
		return $this->term;
51
	}
52
53
	/**
54
	 *
55
	 * @return string[string]
0 ignored issues
show
Documentation introduced by
The doc-type string[string] could not be parsed: Expected "]" at position 2, but found "string". (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
56
	 */
57
	public function getFacets() {
58
		return $this->facets;
59
	}
60
61
	/**
62
	 *
63
	 * @return string[]
64
	 */
65
	public function getUsedFacets() {
66
		return $this->usedFacets;
67
	}
68
}