1 | <?php |
||
13 | trait IndexInitializationTrait |
||
14 | { |
||
15 | /** |
||
16 | * Basic standard configuration |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $params = [ |
||
20 | "body" => [ |
||
21 | "settings" => [ |
||
22 | "number_of_shards" => 1, |
||
23 | "number_of_replicas" => 0, |
||
24 | ], |
||
25 | ], |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * Holds the ElasticClient |
||
30 | * @var \MAbadir\ElasticLaravel\ElasticClient |
||
31 | */ |
||
32 | protected $client; |
||
33 | |||
34 | /** |
||
35 | * IndexInitializationTrait constructor. |
||
36 | * |
||
37 | * @param \MAbadir\ElasticLaravel\ElasticClient $client |
||
38 | */ |
||
39 | public function __construct(ElasticClient $client) |
||
44 | |||
45 | /** |
||
46 | * Execute the console command. |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function handle() |
||
57 | |||
58 | /** |
||
59 | * Confirms user awareness before proceeding |
||
60 | * |
||
61 | * @return mixed |
||
62 | * @author Mina Abadir <[email protected]> |
||
63 | * @copyright Copyright (c) 2016, Mina Abadir |
||
64 | */ |
||
65 | protected function confirmPassword() |
||
76 | |||
77 | /** |
||
78 | * Deletes, Creates the Index then puts the settings |
||
79 | * |
||
80 | * @return mixed |
||
81 | * @author Mina Abadir <[email protected]> |
||
82 | * @copyright Copyright (c) 2016, Mina Abadir |
||
83 | */ |
||
84 | protected function buildIndex() |
||
97 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.