Skip to content

Commit 744a368

Browse files
committed
[types] add @var annotatoins
1 parent f8b5d2b commit 744a368

File tree

20 files changed

+75
-0
lines changed

20 files changed

+75
-0
lines changed

src/Elasticsearch/ClientBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ class ClientBuilder
5656
*/
5757
private $connectionFactory;
5858

59+
/**
60+
* @var callable
61+
*/
5962
private $handler;
6063

6164
/**

src/Elasticsearch/Common/Exceptions/Serializer/JsonErrorException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class JsonErrorException extends \Exception implements ElasticsearchException
2727
*/
2828
private $result;
2929

30+
/**
31+
* @var string[]
32+
*/
3033
private static $messages = array(
3134
JSON_ERROR_DEPTH => 'The maximum stack depth has been exceeded',
3235
JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON',

src/Elasticsearch/Connections/Connection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ class Connection implements ConnectionInterface
110110
*/
111111
private $failedPings = 0;
112112

113+
/**
114+
* @var mixed[]
115+
*/
113116
private $lastRequest = array();
114117

115118
/**

src/Elasticsearch/Endpoints/Cat/Fielddata.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818
class Fielddata extends AbstractEndpoint
1919
{
20+
/**
21+
* @var string
22+
*/
2023
private $fields;
2124

2225
public function setFields(?string $fields): Fielddata

src/Elasticsearch/Endpoints/Cat/Snapshots.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
*/
1919
class Snapshots extends AbstractEndpoint
2020
{
21+
/**
22+
* @var string
23+
*/
2124
private $repository;
2225

2326
public function setRepository(?string $repository): Snapshots

src/Elasticsearch/Endpoints/Cat/Templates.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818
class Templates extends AbstractEndpoint
1919
{
20+
/**
21+
* @var string|null
22+
*/
2023
private $name;
2124

2225
public function setName(?string $name): Templates

src/Elasticsearch/Endpoints/Cat/ThreadPool.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
class ThreadPool extends AbstractEndpoint
2020
{
21+
/**
22+
* @var string
23+
*/
2124
protected $threadPoolPatterns;
2225

2326
public function setThreadPoolPatterns(?string $threadPoolPatterns): ThreadPool

src/Elasticsearch/Endpoints/DeleteByQueryRethrottle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818
class DeleteByQueryRethrottle extends AbstractEndpoint
1919
{
20+
/**
21+
* @var string
22+
*/
2023
protected $taskId;
2124

2225
public function setTaskId(?string $taskId): DeleteByQueryRethrottle

src/Elasticsearch/Endpoints/Indices/Rollover.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
*/
1919
class Rollover extends AbstractEndpoint
2020
{
21+
/**
22+
* @var string
23+
*/
2124
private $alias;
25+
/**
26+
* @var string
27+
*/
2228
private $newIndex;
2329

2430
public function setAlias(?string $alias): Rollover

src/Elasticsearch/Endpoints/Indices/Split.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
class Split extends AbstractEndpoint
2020
{
2121

22+
/**
23+
* @var string
24+
*/
2225
private $target;
2326

2427
/**

0 commit comments

Comments
 (0)