Skip to content

Commit 6d224ae

Browse files
committed
Clean up promoted constructor docs
1 parent a06e6d4 commit 6d224ae

11 files changed

Lines changed: 5 additions & 71 deletions

File tree

src/Documents/Document.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,11 @@ class Document
77
/**
88
* Create a new document instance.
99
*
10+
* @param string $id The OpenSearch document identifier.
1011
* @param array<string, mixed> $content
1112
*/
1213
public function __construct(
13-
/**
14-
* The OpenSearch document identifier.
15-
*/
1614
protected string $id,
17-
18-
/**
19-
* The document source payload.
20-
*
21-
* @var array<string, mixed>
22-
*/
2315
protected array $content,
2416
) {}
2517

src/Documents/DocumentManager.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ class DocumentManager
1313
* Create a new document manager instance.
1414
*/
1515
public function __construct(
16-
/**
17-
* The OpenSearch client instance.
18-
*/
1916
protected Client $client,
2017
) {}
2118

src/Exceptions/BulkRequestException.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ class BulkRequestException extends ErrorException
1212
* @param array<string, mixed> $response
1313
*/
1414
public function __construct(
15-
/**
16-
* The OpenSearch bulk response.
17-
*
18-
* @var array<string, mixed>
19-
*/
2015
protected array $response,
2116
) {
2217
parent::__construct($this->makeErrorFromResponse());

src/Indices/Alias.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,13 @@ class Alias
77
/**
88
* Create a new alias instance.
99
*
10+
* @param string $name The alias name.
1011
* @param array<string, mixed>|null $filter
12+
* @param string|null $routing The optional alias routing value.
1113
*/
1214
public function __construct(
13-
/**
14-
* The alias name.
15-
*/
1615
protected string $name,
17-
18-
/**
19-
* The optional alias filter.
20-
*
21-
* @var array<string, mixed>|null
22-
*/
2316
protected ?array $filter = null,
24-
25-
/**
26-
* The optional alias routing value.
27-
*/
2817
protected ?string $routing = null,
2918
) {}
3019

src/Indices/IndexBlueprint.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,12 @@ class IndexBlueprint
66
{
77
/**
88
* Create a new index blueprint instance.
9+
*
10+
* @param string $name The index name.
911
*/
1012
public function __construct(
11-
/**
12-
* The index name.
13-
*/
1413
protected string $name,
15-
16-
/**
17-
* The index mapping definition.
18-
*/
1914
protected ?Mapping $mapping = null,
20-
21-
/**
22-
* The index settings definition.
23-
*/
2415
protected ?Settings $settings = null,
2516
) {}
2617

src/Search/Aggregation.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ class Aggregation implements RawResponseInterface
1010
* @param array<string, mixed> $aggregation
1111
*/
1212
public function __construct(
13-
/**
14-
* The raw OpenSearch aggregation payload.
15-
*
16-
* @var array<string, mixed>
17-
*/
1813
protected array $aggregation,
1914
) {}
2015

src/Search/Bucket.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ class Bucket implements RawResponseInterface
1010
* @param array<string, mixed> $bucket
1111
*/
1212
public function __construct(
13-
/**
14-
* The raw OpenSearch bucket payload.
15-
*
16-
* @var array<string, mixed>
17-
*/
1813
protected array $bucket,
1914
) {}
2015

src/Search/Highlight.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ class Highlight implements RawResponseInterface
1010
* @param array<string, array<int, string>> $highlight
1111
*/
1212
public function __construct(
13-
/**
14-
* The raw OpenSearch highlight payload.
15-
*
16-
* @var array<string, array<int, string>>
17-
*/
1813
protected array $highlight,
1914
) {}
2015

src/Search/Hit.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ class Hit implements RawResponseInterface
1212
* @param array<string, mixed> $hit
1313
*/
1414
public function __construct(
15-
/**
16-
* The raw OpenSearch hit payload.
17-
*
18-
* @var array<string, mixed>
19-
*/
2015
protected array $hit,
2116
) {}
2217

src/Search/SearchResponse.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ class SearchResponse implements RawResponseInterface
1010
* @param array<string, mixed> $response
1111
*/
1212
public function __construct(
13-
/**
14-
* The raw OpenSearch search response.
15-
*
16-
* @var array<string, mixed>
17-
*/
1813
protected array $response,
1914
) {}
2015

0 commit comments

Comments
 (0)