File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ public function children(): Collection
34
34
* url: https://api.notion.com/{version}/blocks/{block_id}/children
35
35
* notion-api-docs: https://developers.notion.com/reference/get-block-children
36
36
*
37
- * @return BlockCollection
37
+ * @return array
38
38
*/
39
- public function childrenRaw (): Collection
39
+ public function childrenRaw (): array
40
40
{
41
41
return $ this ->collectChildren ()->getRawResults ();
42
42
}
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ public function all(): Collection
39
39
* url: https://api.notion.com/{version}/databases
40
40
* notion-api-docs: https://developers.notion.com/reference/get-databases
41
41
*
42
- * @return DatabaseCollection
42
+ * @return array
43
43
*/
44
- public function allRaw (): Collection
44
+ public function allRaw (): array
45
45
{
46
46
return $ this ->collect ()->getRawResults ();
47
47
}
Original file line number Diff line number Diff line change @@ -68,4 +68,14 @@ public function hasChildren(): bool
68
68
{
69
69
return $ this ->hasChildren ;
70
70
}
71
+
72
+ public function getCreatedTime (): DateTime
73
+ {
74
+ return $ this ->createdTime ;
75
+ }
76
+
77
+ public function getLastEditedTime (): DateTime
78
+ {
79
+ return $ this ->lastEditedTime ;
80
+ }
71
81
}
You can’t perform that action at this time.
0 commit comments