22
33namespace FiveamCode \LaravelNotionApi \Endpoints ;
44
5- use FiveamCode \LaravelNotionApi \Entities \Collections \EntityCollection ;
6- use FiveamCode \LaravelNotionApi \Entities \Collections \PageCollection ;
75use FiveamCode \LaravelNotionApi \Entities \Page ;
86use FiveamCode \LaravelNotionApi \Exceptions \NotionException ;
97use FiveamCode \LaravelNotionApi \Exceptions \HandlingException ;
10- use FiveamCode \LaravelNotionApi \Notion ;
118
129/**
1310 * Class Pages
@@ -61,7 +58,7 @@ public function createInDatabase(string $parentId, Page $page): Page
6158 return new Page ($ response );
6259 }
6360
64- /**
61+ /**
6562 * @return Page
6663 */
6764 public function createInPage (string $ parentId , Page $ page ): Page
@@ -87,17 +84,7 @@ public function createInPage(string $parentId, Page $page): Page
8784 return new Page ($ response );
8885 }
8986
90- /**
91- * Return all pages possible.
92- *
93- * @return EntityCollection
94- * @throws HandlingException
95- * @throws NotionException
96- */
97- public function all (): EntityCollection
98- {
99- return $ this ->notion ->search ()->onlyPages ()->query ();
100- }
87+ 10188
10289 /**
10390 * @return array
0 commit comments