There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: current, key, next, rewind, valid
Loading history...
9
{
10
private $client;
11
12
private $query;
13
14
private $scrollTTL = '1m';
15
16
public function __construct($client, array $query)
The property scollTTL does not seem to exist. Did you mean scrollTTL?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
31
32
$response = $this->client->search($this->query);
33
34
while (isset($response['hits']['hits']) && count($response['hits']['hits']) > 0) {
The variable $client does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.