1 | <?php |
||
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 |
||
|
|||
38 | * @param string[] $usedFacets |
||
39 | */ |
||
40 | public function __construct($term = null, array $facets = array(), $usedFacets = null) { |
||
45 | |||
46 | /** |
||
47 | * Get the search term |
||
48 | * |
||
49 | * @return string Returns the search term |
||
50 | */ |
||
51 | public function getSearchTerm() { |
||
54 | |||
55 | /** |
||
56 | * |
||
57 | * @return string[string] |
||
58 | */ |
||
59 | public function getFacets() { |
||
62 | |||
63 | /** |
||
64 | * |
||
65 | * @return string[] |
||
66 | */ |
||
67 | public function getUsedFacets() { |
||
70 | |||
71 | public function setSearchTerm($term) { |
||
75 | |||
76 | public function setFacets($facets) { |
||
80 | |||
81 | public function setUsedFacets($usedFacets) { |
||
85 | |||
86 | /** |
||
87 | * |
||
88 | * @param string $name |
||
89 | * Name of the property to fetch |
||
90 | * @return \Pec\Bundle\MtuDvpBundle\Entity\TestRiskValue |
||
91 | */ |
||
92 | public function __get($name) { |
||
102 | |||
103 | /** |
||
104 | * |
||
105 | * @param string $name |
||
106 | * Name of the property to set |
||
107 | * @param mixed $value |
||
108 | * The value of the property |
||
109 | */ |
||
110 | public function __set($name, $value) { |
||
120 | |||
121 | /** |
||
122 | * Checks whether the given property is set or not |
||
123 | * |
||
124 | * @param string $name |
||
125 | * @return boolean |
||
126 | */ |
||
127 | public function __isset($name) { |
||
134 | } |
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.