@@ -18,7 +18,8 @@ class DatabaseBuilder
18
18
19
19
/**
20
20
* DatabaseBuilder constructor.
21
- * @param Databases $databasesEndpoint
21
+ *
22
+ * @param Databases $databasesEndpoint
22
23
*/
23
24
public function __construct (private Databases $ databasesEndpoint )
24
25
{
@@ -38,8 +39,8 @@ public function __construct(private Databases $databasesEndpoint)
38
39
39
40
/**
40
41
* Creates database within given page.
41
- *
42
- * @param string $pageId
42
+ *
43
+ * @param string $pageId
43
44
* @return Database
44
45
*/
45
46
public function createInPage ($ pageId ): Database
@@ -58,8 +59,8 @@ public function createInPage($pageId): Database
58
59
59
60
/**
60
61
* Sets the title for the database creation.
61
- *
62
- * @param string $title
62
+ *
63
+ * @param string $title
63
64
* @return DatabaseBuilder
64
65
*/
65
66
public function title (string $ title ): DatabaseBuilder
@@ -77,8 +78,8 @@ public function title(string $title): DatabaseBuilder
77
78
78
79
/**
79
80
* Sets the description for the database creation.
80
- *
81
- * @param string $description
81
+ *
82
+ * @param string $description
82
83
* @return DatabaseBuilder
83
84
*/
84
85
public function description (string $ description ): DatabaseBuilder
@@ -96,8 +97,9 @@ public function description(string $description): DatabaseBuilder
96
97
97
98
/**
98
99
* Sets the created database as inline (currently not supported).
100
+ *
99
101
* @todo increase Notion API Version, to make this work
100
- *
102
+ *
101
103
* @return DatabaseBuilder
102
104
*/
103
105
public function inline (): DatabaseBuilder
@@ -109,8 +111,8 @@ public function inline(): DatabaseBuilder
109
111
110
112
/**
111
113
* Sets the icon for the database creation.
112
- *
113
- * @param string $icon
114
+ *
115
+ * @param string $icon
114
116
* @return DatabaseBuilder
115
117
*/
116
118
public function iconEmoji (string $ icon ): DatabaseBuilder
@@ -125,8 +127,8 @@ public function iconEmoji(string $icon): DatabaseBuilder
125
127
126
128
/**
127
129
* Sets the icon for the database creation.
128
- *
129
- * @param string $url
130
+ *
131
+ * @param string $url
130
132
* @return DatabaseBuilder
131
133
*/
132
134
public function iconExternal (string $ url ): DatabaseBuilder
@@ -143,8 +145,8 @@ public function iconExternal(string $url): DatabaseBuilder
143
145
144
146
/**
145
147
* Sets the cover for the database creation.
146
- *
147
- * @param string $url
148
+ *
149
+ * @param string $url
148
150
* @return DatabaseBuilder
149
151
*/
150
152
public function coverExternal (string $ url ): DatabaseBuilder
@@ -161,8 +163,8 @@ public function coverExternal(string $url): DatabaseBuilder
161
163
162
164
/**
163
165
* Adds the property `title` database creation.
164
- *
165
- * @param string $name
166
+ *
167
+ * @param string $name
166
168
* @return DatabaseBuilder
167
169
*/
168
170
public function addTitle (string $ name = 'Name ' )
@@ -174,8 +176,8 @@ public function addTitle(string $name = 'Name')
174
176
175
177
/**
176
178
* Adds one or multiple properties to the database creation.
177
- *
178
- * @param PropertyBuilder|Collection|DatabaseSchemeBuilder $properties
179
+ *
180
+ * @param PropertyBuilder|Collection|DatabaseSchemeBuilder $properties
179
181
* @return DatabaseBuilder
180
182
*/
181
183
public function add (PropertyBuilder |Collection |DatabaseSchemeBuilder $ properties ): DatabaseBuilder
@@ -197,8 +199,8 @@ public function add(PropertyBuilder|Collection|DatabaseSchemeBuilder $properties
197
199
198
200
/**
199
201
* Adds multiple properties to the database creation, similar to a Laravel migration.
200
- *
201
- * @param callable $callback
202
+ *
203
+ * @param callable $callback
202
204
* @return DatabaseBuilder
203
205
*/
204
206
public function scheme (callable $ callback ): DatabaseBuilder
@@ -211,10 +213,10 @@ public function scheme(callable $callback): DatabaseBuilder
211
213
212
214
/**
213
215
* Adds a raw property to the database creation.
214
- *
215
- * @param string $title
216
- * @param string $propertyType
217
- * @param array|null $content
216
+ *
217
+ * @param string $title
218
+ * @param string $propertyType
219
+ * @param array|null $content
218
220
* @return DatabaseBuilder
219
221
*/
220
222
public function addRaw (string $ title , string $ propertyType , array $ content = null ): DatabaseBuilder
@@ -227,7 +229,7 @@ public function addRaw(string $title, string $propertyType, array $content = nul
227
229
228
230
/**
229
231
* Returns the payload for the database creation.
230
- *
232
+ *
231
233
* @return array
232
234
*/
233
235
public function payload (): array
0 commit comments