diff --git a/src/Response/Subscription/GetStatusResponse.php b/src/Response/Subscription/GetStatusResponse.php index 7fd01c4..37da8a8 100644 --- a/src/Response/Subscription/GetStatusResponse.php +++ b/src/Response/Subscription/GetStatusResponse.php @@ -6,4 +6,12 @@ class GetStatusResponse extends BaseResponse { + public ?array $status = null; + + public function fillFromArray(array $params, bool $allowExtraProperties = false): void + { + parent::fillFromArray($params, $allowExtraProperties); + + $this->status = $params['status'] ?? []; + } } diff --git a/tests/Response/Subscription/GetStatusResponseTest.php b/tests/Response/Subscription/GetStatusResponseTest.php new file mode 100644 index 0000000..4d93099 --- /dev/null +++ b/tests/Response/Subscription/GetStatusResponseTest.php @@ -0,0 +1,20 @@ + 'status']; + + $response->fillFromArray(['status' => $status]); + + $this->assertSame($status, $response->status); + } +}