Skip to content

Commit

Permalink
Updated opensearch-php to reflect the latest OpenSearch API spec (202…
Browse files Browse the repository at this point in the history
…4-11-08)

Signed-off-by: GitHub <[email protected]>
  • Loading branch information
dblock authored Nov 8, 2024
1 parent add2d03 commit 72ab723
Show file tree
Hide file tree
Showing 243 changed files with 1,224 additions and 1,219 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Fixed
- Fixed PHP 8.4 deprecations
### Updated APIs
- Updated opensearch-php APIs to reflect [opensearch-api-specification@e41257a](https://github.com/opensearch-project/opensearch-api-specification/commit/e41257a2edc8497477fa486d644d06e2e9b1343c)
- Updated opensearch-php APIs to reflect [opensearch-api-specification@07e329e](https://github.com/opensearch-project/opensearch-api-specification/commit/07e329e8d01fd0576de6a0a3c35412fd5a9163db)
- Updated opensearch-php APIs to reflect [opensearch-api-specification@1db1840](https://github.com/opensearch-project/opensearch-api-specification/commit/1db184063a463c5180a2cc824b1efc1aeebfd5eb)
- Updated opensearch-php APIs to reflect [opensearch-api-specification@cb320b5](https://github.com/opensearch-project/opensearch-api-specification/commit/cb320b5482551c4f28afa26ff0d1653332699722)
Expand Down
252 changes: 126 additions & 126 deletions src/OpenSearch/Client.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/AsynchronousSearch/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getMethod(): string
return 'POST';
}

public function setBody($body): Search
public function setBody($body): static

Check warning on line 50 in src/OpenSearch/Endpoints/AsynchronousSearch/Search.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/AsynchronousSearch/Search.php#L50

Added line #L50 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
3 changes: 2 additions & 1 deletion src/OpenSearch/Endpoints/Bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getMethod(): string
return 'POST';
}

public function setBody($body): Bulk
public function setBody($body): static

Check warning on line 73 in src/OpenSearch/Endpoints/Bulk.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Bulk.php#L73

Added line #L73 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand All @@ -89,4 +89,5 @@ public function setBody($body): Bulk
}
return $this;
}

}
3 changes: 2 additions & 1 deletion src/OpenSearch/Endpoints/BulkStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getMethod(): string
return 'PUT';
}

public function setBody($body): BulkStream
public function setBody($body): static

Check warning on line 69 in src/OpenSearch/Endpoints/BulkStream.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/BulkStream.php#L69

Added line #L69 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand All @@ -85,4 +85,5 @@ public function setBody($body): BulkStream
}
return $this;
}

}
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cat/Aliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getMethod(): string
return 'GET';
}

public function setName($name): Aliases
public function setName($name): static

Check warning on line 65 in src/OpenSearch/Endpoints/Cat/Aliases.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cat/Aliases.php#L65

Added line #L65 was not covered by tests
{
if (isset($name) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cat/Allocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getMethod(): string
return 'GET';
}

public function setNodeId($node_id): Allocation
public function setNodeId($node_id): static

Check warning on line 67 in src/OpenSearch/Endpoints/Cat/Allocation.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cat/Allocation.php#L67

Added line #L67 was not covered by tests
{
if (isset($node_id) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cat/Fielddata.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getMethod(): string
return 'GET';
}

public function setFields($fields): Fielddata
public function setFields($fields): static

Check warning on line 65 in src/OpenSearch/Endpoints/Cat/Fielddata.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cat/Fielddata.php#L65

Added line #L65 was not covered by tests
{
if (isset($fields) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cat/PitSegments.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getMethod(): string
return 'GET';
}

public function setBody($body): PitSegments
public function setBody($body): static

Check warning on line 52 in src/OpenSearch/Endpoints/Cat/PitSegments.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cat/PitSegments.php#L52

Added line #L52 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cat/Snapshots.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getMethod(): string
return 'GET';
}

public function setRepository($repository): Snapshots
public function setRepository($repository): static

Check warning on line 67 in src/OpenSearch/Endpoints/Cat/Snapshots.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cat/Snapshots.php#L67

Added line #L67 was not covered by tests
{
if (isset($repository) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cat/Templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function getMethod(): string
return 'GET';
}

public function setName($name): Templates
public function setName($name): static
{

Check warning on line 67 in src/OpenSearch/Endpoints/Cat/Templates.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cat/Templates.php#L66-L67

Added lines #L66 - L67 were not covered by tests
if (isset($name) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cat/ThreadPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getMethod(): string
return 'GET';
}

public function setThreadPoolPatterns($thread_pool_patterns): ThreadPool
public function setThreadPoolPatterns($thread_pool_patterns): static
{
if (isset($thread_pool_patterns) !== true) {
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/OpenSearch/Endpoints/ClearScroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getMethod(): string
return 'DELETE';
}

public function setBody($body): ClearScroll
public function setBody($body): static

Check warning on line 62 in src/OpenSearch/Endpoints/ClearScroll.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/ClearScroll.php#L62

Added line #L62 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand All @@ -69,7 +69,7 @@ public function setBody($body): ClearScroll
return $this;
}

public function setScrollId($scroll_id): ClearScroll
public function setScrollId($scroll_id): static

Check warning on line 72 in src/OpenSearch/Endpoints/ClearScroll.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/ClearScroll.php#L72

Added line #L72 was not covered by tests
{
if (isset($scroll_id) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/AllocationExplain.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getMethod(): string
return isset($this->body) ? 'POST' : 'GET';
}

public function setBody($body): AllocationExplain
public function setBody($body): static

Check warning on line 54 in src/OpenSearch/Endpoints/Cluster/AllocationExplain.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/AllocationExplain.php#L54

Added line #L54 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getMethod(): string
return 'DELETE';
}

public function setName($name): DeleteComponentTemplate
public function setName($name): static

Check warning on line 62 in src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/DeleteComponentTemplate.php#L62

Added line #L62 was not covered by tests
{
if (isset($name) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/DeleteWeightedRouting.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getMethod(): string
return 'DELETE';
}

public function setBody($body): DeleteWeightedRouting
public function setBody($body): static

Check warning on line 46 in src/OpenSearch/Endpoints/Cluster/DeleteWeightedRouting.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/DeleteWeightedRouting.php#L46

Added line #L46 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getMethod(): string
return 'HEAD';
}

public function setName($name): ExistsComponentTemplate
public function setName($name): static

Check warning on line 62 in src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/ExistsComponentTemplate.php#L62

Added line #L62 was not covered by tests
{
if (isset($name) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getMethod(): string
return 'GET';
}

public function setName($name): GetComponentTemplate
public function setName($name): static

Check warning on line 61 in src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/GetComponentTemplate.php#L61

Added line #L61 was not covered by tests
{
if (isset($name) !== true) {
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getMethod(): string
return 'GET';
}

public function setAwarenessAttributeName($awareness_attribute_name): GetDecommissionAwareness
public function setAwarenessAttributeName($awareness_attribute_name): static

Check warning on line 53 in src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/GetDecommissionAwareness.php#L53

Added line #L53 was not covered by tests
{
if (isset($awareness_attribute_name) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getMethod(): string
return 'GET';
}

public function setAttribute($attribute): GetWeightedRouting
public function setAttribute($attribute): static

Check warning on line 53 in src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/GetWeightedRouting.php#L53

Added line #L53 was not covered by tests
{
if (isset($attribute) !== true) {
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getMethod(): string
return 'PUT';
}

public function setBody($body): PutComponentTemplate
public function setBody($body): static

Check warning on line 63 in src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php#L63

Added line #L63 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand All @@ -70,7 +70,7 @@ public function setBody($body): PutComponentTemplate
return $this;
}

public function setName($name): PutComponentTemplate
public function setName($name): static

Check warning on line 73 in src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/PutComponentTemplate.php#L73

Added line #L73 was not covered by tests
{
if (isset($name) !== true) {
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getMethod(): string
return 'PUT';
}

public function setAwarenessAttributeName($awareness_attribute_name): PutDecommissionAwareness
public function setAwarenessAttributeName($awareness_attribute_name): static

Check warning on line 55 in src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php#L55

Added line #L55 was not covered by tests
{
if (isset($awareness_attribute_name) !== true) {
return $this;
Expand All @@ -62,7 +62,7 @@ public function setAwarenessAttributeName($awareness_attribute_name): PutDecommi
return $this;
}

public function setAwarenessAttributeValue($awareness_attribute_value): PutDecommissionAwareness
public function setAwarenessAttributeValue($awareness_attribute_value): static

Check warning on line 65 in src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/PutDecommissionAwareness.php#L65

Added line #L65 was not covered by tests
{
if (isset($awareness_attribute_value) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/PutSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getMethod(): string
return 'PUT';
}

public function setBody($body): PutSettings
public function setBody($body): static

Check warning on line 56 in src/OpenSearch/Endpoints/Cluster/PutSettings.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/PutSettings.php#L56

Added line #L56 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getMethod(): string
return 'PUT';
}

public function setBody($body): PutWeightedRouting
public function setBody($body): static

Check warning on line 53 in src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php#L53

Added line #L53 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand All @@ -60,7 +60,7 @@ public function setBody($body): PutWeightedRouting
return $this;
}

public function setAttribute($attribute): PutWeightedRouting
public function setAttribute($attribute): static

Check warning on line 63 in src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/PutWeightedRouting.php#L63

Added line #L63 was not covered by tests
{
if (isset($attribute) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/Reroute.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getMethod(): string
return 'POST';
}

public function setBody($body): Reroute
public function setBody($body): static

Check warning on line 59 in src/OpenSearch/Endpoints/Cluster/Reroute.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/Reroute.php#L59

Added line #L59 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getMethod(): string
return 'GET';
}

public function setMetric($metric): State
public function setMetric($metric): static

Check warning on line 71 in src/OpenSearch/Endpoints/Cluster/State.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/State.php#L71

Added line #L71 was not covered by tests
{
if (isset($metric) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Cluster/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getMethod(): string
return 'GET';
}

public function setNodeId($node_id): Stats
public function setNodeId($node_id): static

Check warning on line 60 in src/OpenSearch/Endpoints/Cluster/Stats.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Cluster/Stats.php#L60

Added line #L60 was not covered by tests
{
if (isset($node_id) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Count.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getMethod(): string
return isset($this->body) ? 'POST' : 'GET';
}

public function setBody($body): Count
public function setBody($body): static

Check warning on line 70 in src/OpenSearch/Endpoints/Count.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Count.php#L70

Added line #L70 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getMethod(): string
return 'PUT';
}

public function setBody($body): Create
public function setBody($body): static
{
if (isset($body) !== true) {
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getMethod(): string
return 'DELETE';
}

public function setIndexUuid($index_uuid): DeleteDanglingIndex
public function setIndexUuid($index_uuid): static

Check warning on line 63 in src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/DanglingIndices/DeleteDanglingIndex.php#L63

Added line #L63 was not covered by tests
{
if (isset($index_uuid) !== true) {
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getMethod(): string
return 'POST';
}

public function setIndexUuid($index_uuid): ImportDanglingIndex
public function setIndexUuid($index_uuid): static

Check warning on line 63 in src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/DanglingIndices/ImportDanglingIndex.php#L63

Added line #L63 was not covered by tests
{
if (isset($index_uuid) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/DeleteByQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getMethod(): string
return 'POST';
}

public function setBody($body): DeleteByQuery
public function setBody($body): static

Check warning on line 92 in src/OpenSearch/Endpoints/DeleteByQuery.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/DeleteByQuery.php#L92

Added line #L92 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getMethod(): string
return 'POST';
}

public function setTaskId($task_id): DeleteByQueryRethrottle
public function setTaskId($task_id): static

Check warning on line 62 in src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/DeleteByQueryRethrottle.php#L62

Added line #L62 was not covered by tests
{
if (isset($task_id) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/DeletePit.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getMethod(): string
return 'DELETE';
}

public function setBody($body): DeletePit
public function setBody($body): static
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/Explain.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getMethod(): string
return isset($this->body) ? 'POST' : 'GET';
}

public function setBody($body): Explain
public function setBody($body): static

Check warning on line 77 in src/OpenSearch/Endpoints/Explain.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/Explain.php#L77

Added line #L77 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/FieldCaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getMethod(): string
return isset($this->body) ? 'POST' : 'GET';
}

public function setBody($body): FieldCaps
public function setBody($body): static

Check warning on line 61 in src/OpenSearch/Endpoints/FieldCaps.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/FieldCaps.php#L61

Added line #L61 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/FlowFramework/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getMethod(): string
return 'POST';
}

public function setBody($body): Create
public function setBody($body): static

Check warning on line 51 in src/OpenSearch/Endpoints/FlowFramework/Create.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/FlowFramework/Create.php#L51

Added line #L51 was not covered by tests
{
if (isset($body) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/FlowFramework/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getMethod(): string
return 'DELETE';
}

public function setWorkflowId($workflow_id): Delete
public function setWorkflowId($workflow_id): static

Check warning on line 54 in src/OpenSearch/Endpoints/FlowFramework/Delete.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/FlowFramework/Delete.php#L54

Added line #L54 was not covered by tests
{
if (isset($workflow_id) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/FlowFramework/Deprovision.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getMethod(): string
return 'POST';
}

public function setWorkflowId($workflow_id): Deprovision
public function setWorkflowId($workflow_id): static

Check warning on line 54 in src/OpenSearch/Endpoints/FlowFramework/Deprovision.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/FlowFramework/Deprovision.php#L54

Added line #L54 was not covered by tests
{
if (isset($workflow_id) !== true) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSearch/Endpoints/FlowFramework/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getMethod(): string
return 'GET';
}

public function setWorkflowId($workflow_id): Get
public function setWorkflowId($workflow_id): static
{

Check warning on line 54 in src/OpenSearch/Endpoints/FlowFramework/Get.php

View check run for this annotation

Codecov / codecov/patch

src/OpenSearch/Endpoints/FlowFramework/Get.php#L53-L54

Added lines #L53 - L54 were not covered by tests
if (isset($workflow_id) !== true) {
return $this;
Expand Down
Loading

0 comments on commit 72ab723

Please sign in to comment.