1 | <?php |
||
9 | class SearchResultInfo |
||
10 | { |
||
11 | /** |
||
12 | * @param EntityManager $entityManager |
||
13 | * @param \stdClass $value |
||
14 | * @return SearchResultInfo |
||
15 | */ |
||
16 | public static function fromValue(EntityManager $entityManager, \stdClass $value) |
||
20 | |||
21 | /** |
||
22 | * @var EntityManager |
||
23 | */ |
||
24 | protected $entityManager; |
||
25 | |||
26 | /** |
||
27 | * @var \stdClass |
||
28 | */ |
||
29 | protected $source; |
||
30 | |||
31 | /** |
||
32 | * @var QueryFacet[]|ArrayCollection |
||
33 | */ |
||
34 | protected $facets; |
||
35 | |||
36 | |||
37 | /** |
||
38 | * @param EntityManager $entityManager |
||
39 | * @param \stdClass $source |
||
40 | */ |
||
41 | public function __construct(EntityManager $entityManager, \stdClass $source) |
||
46 | |||
47 | /** |
||
48 | * The offset start |
||
49 | * |
||
50 | * @return integer |
||
51 | */ |
||
52 | public function getOffsetStart() |
||
56 | |||
57 | /** |
||
58 | * The number item to retrieve |
||
59 | * |
||
60 | * @return integer |
||
61 | */ |
||
62 | public function getPerPage() |
||
66 | |||
67 | /** |
||
68 | * Get the total result |
||
69 | * |
||
70 | * @return integer |
||
71 | */ |
||
72 | public function getTotalResults() |
||
76 | |||
77 | /** |
||
78 | * Get errors as string |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getError() |
||
86 | |||
87 | /** |
||
88 | * Get warnings as string |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getWarning() |
||
96 | |||
97 | /** |
||
98 | * Get the query time |
||
99 | * |
||
100 | * @return float |
||
101 | */ |
||
102 | public function getQueryTime() |
||
106 | |||
107 | /** |
||
108 | * Get search indexes |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getSearchIndexes() |
||
116 | |||
117 | /** |
||
118 | * Get the query string |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getQuery() |
||
126 | |||
127 | /** |
||
128 | * @return ArrayCollection|QueryFacet[] |
||
129 | */ |
||
130 | public function getFacets() |
||
138 | } |
||
139 |