1 | <?php |
||
13 | class Recovery |
||
14 | { |
||
15 | /** |
||
16 | * Response. |
||
17 | * |
||
18 | * @var \Elastica\Response Response object |
||
19 | */ |
||
20 | protected $_response; |
||
21 | |||
22 | /** |
||
23 | * Recovery info. |
||
24 | * |
||
25 | * @var array Recovery info |
||
26 | */ |
||
27 | protected $_data = []; |
||
28 | |||
29 | /** |
||
30 | * Index. |
||
31 | * |
||
32 | * @var \Elastica\Index Index object |
||
33 | */ |
||
34 | protected $_index; |
||
35 | |||
36 | /** |
||
37 | * Construct. |
||
38 | * |
||
39 | * @param \Elastica\Index $index Index object |
||
40 | */ |
||
41 | public function __construct(BaseIndex $index) |
||
46 | |||
47 | /** |
||
48 | * Returns the index object. |
||
49 | * |
||
50 | * @return \Elastica\Index Index object |
||
51 | */ |
||
52 | public function getIndex() |
||
56 | |||
57 | /** |
||
58 | * Returns response object. |
||
59 | * |
||
60 | * @return \Elastica\Response Response object |
||
61 | */ |
||
62 | public function getResponse() |
||
66 | |||
67 | /** |
||
68 | * Returns the raw recovery info. |
||
69 | * |
||
70 | * @return array Recovery info |
||
71 | */ |
||
72 | public function getData() |
||
76 | |||
77 | /** |
||
78 | * @return mixed |
||
79 | */ |
||
80 | protected function getRecoveryData() |
||
88 | |||
89 | /** |
||
90 | * Retrieve the Recovery data |
||
91 | * |
||
92 | * @return $this |
||
93 | */ |
||
94 | public function refresh() |
||
100 | } |