Browse Source

Adding missing method for manga collection

Timothy J. Warren 9 months ago
parent
commit
23552d62b1
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      src/Model/Manga.php

+ 11
- 0
src/Model/Manga.php View File

@@ -84,6 +84,17 @@ class Manga extends API
84 84
 		return $this->kitsuModel->getManga($manga_id);
85 85
 	}
86 86
 
87
+	/**
88
+	 * Get anime by its kitsu id
89
+	 *
90
+	 * @param string $animeId
91
+	 * @return array
92
+	 */
93
+	public function getMangaById(string $animeId): array
94
+	{
95
+		return $this->kitsuModel->getMangaById($animeId);
96
+	}
97
+
87 98
 	/**
88 99
 	 * Get information about a specific list item
89 100
 	 * for editing/updating that item