From 6ada6a313b873da71c92272b957ee64d2c33c66d Mon Sep 17 00:00:00 2001 From: John Wedgbury Date: Mon, 11 May 2020 17:09:26 +0100 Subject: [PATCH] Returning data on sub endpoints --- src/Requests/Extending/SubAll.php | 2 +- src/Requests/Extending/SubCreate.php | 2 +- src/Requests/Extending/SubGet.php | 2 +- src/Requests/Extending/SubUpdate.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Requests/Extending/SubAll.php b/src/Requests/Extending/SubAll.php index 07a5358..64e18d8 100644 --- a/src/Requests/Extending/SubAll.php +++ b/src/Requests/Extending/SubAll.php @@ -14,6 +14,6 @@ public static function all($parent_id, $options = []) { $parent = new self::$extends; self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint; - self::_all($options); + return self::_all($options); } } diff --git a/src/Requests/Extending/SubCreate.php b/src/Requests/Extending/SubCreate.php index 1ecda9f..4e8279d 100644 --- a/src/Requests/Extending/SubCreate.php +++ b/src/Requests/Extending/SubCreate.php @@ -14,6 +14,6 @@ public static function create($parent_id, $data) { $parent = new self::$extends; self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint; - self::_create($data); + return self::_create($data); } } diff --git a/src/Requests/Extending/SubGet.php b/src/Requests/Extending/SubGet.php index c5905b5..9a1e6ed 100644 --- a/src/Requests/Extending/SubGet.php +++ b/src/Requests/Extending/SubGet.php @@ -14,6 +14,6 @@ public static function get($parent_id, $id) { $parent = new self::$extends; self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint; - self::_get($id); + return self::_get($id); } } diff --git a/src/Requests/Extending/SubUpdate.php b/src/Requests/Extending/SubUpdate.php index 19c0865..51c6309 100644 --- a/src/Requests/Extending/SubUpdate.php +++ b/src/Requests/Extending/SubUpdate.php @@ -14,6 +14,6 @@ public static function update($parent_id, $id, $data) { $parent = new self::$extends; self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint; - self::_update($id, $data); + return self::_update($id, $data); } }