1 | <?php |
||
36 | class SearchResult extends \Apache_Solr_Document |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | protected $throwExceptions = false; |
||
43 | |||
44 | /** |
||
45 | * @var SearchResult[] |
||
46 | */ |
||
47 | protected $variants = []; |
||
48 | |||
49 | /** |
||
50 | * Indicates if an instance of this document is a variant (a sub document of another). |
||
51 | * |
||
52 | * @var bool |
||
53 | */ |
||
54 | protected $isVariant = false; |
||
55 | |||
56 | /** |
||
57 | * References the parent document of the document is a variant. |
||
58 | * |
||
59 | * @var null |
||
60 | */ |
||
61 | protected $variantParent = null; |
||
62 | |||
63 | /** |
||
64 | * @param \Apache_Solr_Document $document |
||
65 | * @param bool $throwExceptions |
||
66 | */ |
||
67 | 24 | public function __construct(\Apache_Solr_Document $document, $throwExceptions = false) |
|
74 | |||
75 | /** |
||
76 | * @param string $name |
||
77 | * @param array $arguments |
||
78 | * @throws \Exception |
||
79 | * @throws \RuntimeException |
||
80 | * @return string |
||
81 | */ |
||
82 | 2 | public function __call($name, $arguments) |
|
92 | |||
93 | /** |
||
94 | * @return SearchResult[] |
||
95 | */ |
||
96 | 20 | public function getVariants() |
|
100 | |||
101 | /** |
||
102 | * @param SearchResult $expandedResult |
||
103 | */ |
||
104 | 2 | public function addVariant(SearchResult $expandedResult) |
|
108 | |||
109 | /** |
||
110 | * @return bool |
||
111 | */ |
||
112 | 1 | public function getIsVariant() |
|
116 | |||
117 | /** |
||
118 | * @param bool $isVariant |
||
119 | */ |
||
120 | 2 | public function setIsVariant($isVariant) |
|
124 | |||
125 | /** |
||
126 | * @return null |
||
127 | */ |
||
128 | public function getVariantParent() |
||
132 | |||
133 | /** |
||
134 | * @param null $variantParent |
||
135 | */ |
||
136 | 2 | public function setVariantParent($variantParent) |
|
140 | } |
||
141 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.