1717class Wiki extends AbstractApi
1818{
1919 /**
20- * @param int|string $project_id
21- * @param array $params
20+ * @param int|string $project_id
21+ * @param array<string,mixed> $params
2222 *
2323 * @return mixed
2424 */
@@ -39,19 +39,27 @@ public function show($project_id, string $wiki_slug)
3939 }
4040
4141 /**
42- * @param int|string $project_id
42+ * @param int|string $project_id
43+ * @param array<string,mixed> $params {
44+ *
45+ * @var bool $with_content Include pages' content
46+ * }
4347 *
4448 * @return mixed
4549 */
46- public function showAll ($ project_id )
50+ public function showAll ($ project_id, array $ params )
4751 {
48- return $ this ->get ($ this ->getProjectPath ($ project_id , 'wikis ' ));
52+ $ resolver = $ this ->createOptionsResolver ();
53+ $ resolver ->setDefined ('with_content ' )
54+ ->setAllowedTypes ('with_content ' , 'bool ' );
55+
56+ return $ this ->get ($ this ->getProjectPath ($ project_id , 'wikis ' ), $ resolver ->resolve ($ params ));
4957 }
5058
5159 /**
52- * @param int|string $project_id
53- * @param string $wiki_slug
54- * @param array $params
60+ * @param int|string $project_id
61+ * @param string $wiki_slug
62+ * @param array<string,mixed> $params
5563 *
5664 * @return mixed
5765 */
0 commit comments