From f2516fbc7544f919ba548722d63ce220e281a992 Mon Sep 17 00:00:00 2001 From: Cam Date: Sun, 18 Feb 2024 21:46:06 -0600 Subject: [PATCH 1/3] allow access to item_urls --- src/FetchApp/API/Product.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FetchApp/API/Product.php b/src/FetchApp/API/Product.php index 0eaf455..0e6c36d 100644 --- a/src/FetchApp/API/Product.php +++ b/src/FetchApp/API/Product.php @@ -208,6 +208,11 @@ public function getDownloadsUri(){ return $this->DownloadsUri; } */ public function setDownloadsUri($DownloadsUri){ $this->DownloadsUri = $DownloadsUri; } + /** + * @return string + */ + public function getItems(){ return $this->items_url; } + /** * @param \DateTime $CreationDate */ @@ -550,4 +555,4 @@ public function loadFromJSON($json){ return true; } -} \ No newline at end of file +} From 83368b966c46b6eafa069d8952843bb44aedac42 Mon Sep 17 00:00:00 2001 From: Cam Date: Sun, 18 Feb 2024 21:54:52 -0600 Subject: [PATCH 2/3] fix typo --- src/FetchApp/API/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FetchApp/API/Product.php b/src/FetchApp/API/Product.php index 0e6c36d..6784031 100644 --- a/src/FetchApp/API/Product.php +++ b/src/FetchApp/API/Product.php @@ -211,7 +211,7 @@ public function setDownloadsUri($DownloadsUri){ $this->DownloadsUri = $Downloads /** * @return string */ - public function getItems(){ return $this->items_url; } + public function getItems(){ return $this->item_urls; } /** * @param \DateTime $CreationDate From 61d2fad34ffe0f9b4fb0381de2610c2f216134bb Mon Sep 17 00:00:00 2001 From: Cam Date: Sun, 18 Feb 2024 22:00:12 -0600 Subject: [PATCH 3/3] fix return type --- src/FetchApp/API/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FetchApp/API/Product.php b/src/FetchApp/API/Product.php index 6784031..c543665 100644 --- a/src/FetchApp/API/Product.php +++ b/src/FetchApp/API/Product.php @@ -209,7 +209,7 @@ public function getDownloadsUri(){ return $this->DownloadsUri; } public function setDownloadsUri($DownloadsUri){ $this->DownloadsUri = $DownloadsUri; } /** - * @return string + * @return array */ public function getItems(){ return $this->item_urls; }