Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f5b31b

Browse files
Merge pull request #24 from 5am-code/revert-20-feature/pages-all-shorthand
Revert "Added Shorthand to access all pages possible via search endpoint"
2 parents b1dfda1 + dd5dcef commit 3f5b31b

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

‎src/Endpoints/Pages.php‎

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
namespace FiveamCode\LaravelNotionApi\Endpoints;
44

5-
use FiveamCode\LaravelNotionApi\Entities\Collections\EntityCollection;
6-
use FiveamCode\LaravelNotionApi\Entities\Collections\PageCollection;
75
use FiveamCode\LaravelNotionApi\Entities\Page;
86
use FiveamCode\LaravelNotionApi\Exceptions\NotionException;
97
use 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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /