From 971e9524fe2419ca92ff4ecc220fd2cbf3bf8457 Mon Sep 17 00:00:00 2001 From: Rick Bongers Date: Tue, 6 Feb 2024 10:55:10 +0100 Subject: [PATCH] add toArray method to result --- src/Result.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Result.php b/src/Result.php index 68846e9..f7a6847 100644 --- a/src/Result.php +++ b/src/Result.php @@ -97,6 +97,11 @@ public function __construct(array $rawData) } } + public function toArray(): array + { + return $this->data; + } + public function __get($key) { return data_get($this->data, $key);