@@ -18,7 +18,8 @@ class DatabaseBuilder
1818
1919 /**
2020 * DatabaseBuilder constructor.
21- * @param Databases $databasesEndpoint
21+ *
22+ * @param Databases $databasesEndpoint
2223 */
2324 public function __construct (private Databases $ databasesEndpoint )
2425 {
@@ -38,8 +39,8 @@ public function __construct(private Databases $databasesEndpoint)
3839
3940 /**
4041 * Creates database within given page.
41- *
42- * @param string $pageId
42+ *
43+ * @param string $pageId
4344 * @return Database
4445 */
4546 public function createInPage ($ pageId ): Database
@@ -58,8 +59,8 @@ public function createInPage($pageId): Database
5859
5960 /**
6061 * Sets the title for the database creation.
61- *
62- * @param string $title
62+ *
63+ * @param string $title
6364 * @return DatabaseBuilder
6465 */
6566 public function title (string $ title ): DatabaseBuilder
@@ -77,8 +78,8 @@ public function title(string $title): DatabaseBuilder
7778
7879 /**
7980 * Sets the description for the database creation.
80- *
81- * @param string $description
81+ *
82+ * @param string $description
8283 * @return DatabaseBuilder
8384 */
8485 public function description (string $ description ): DatabaseBuilder
@@ -96,8 +97,9 @@ public function description(string $description): DatabaseBuilder
9697
9798 /**
9899 * Sets the created database as inline (currently not supported).
100+ *
99101 * @todo increase Notion API Version, to make this work
100- *
102+ *
101103 * @return DatabaseBuilder
102104 */
103105 public function inline (): DatabaseBuilder
@@ -109,8 +111,8 @@ public function inline(): DatabaseBuilder
109111
110112 /**
111113 * Sets the icon for the database creation.
112- *
113- * @param string $icon
114+ *
115+ * @param string $icon
114116 * @return DatabaseBuilder
115117 */
116118 public function iconEmoji (string $ icon ): DatabaseBuilder
@@ -125,8 +127,8 @@ public function iconEmoji(string $icon): DatabaseBuilder
125127
126128 /**
127129 * Sets the icon for the database creation.
128- *
129- * @param string $url
130+ *
131+ * @param string $url
130132 * @return DatabaseBuilder
131133 */
132134 public function iconExternal (string $ url ): DatabaseBuilder
@@ -143,8 +145,8 @@ public function iconExternal(string $url): DatabaseBuilder
143145
144146 /**
145147 * Sets the cover for the database creation.
146- *
147- * @param string $url
148+ *
149+ * @param string $url
148150 * @return DatabaseBuilder
149151 */
150152 public function coverExternal (string $ url ): DatabaseBuilder
@@ -161,8 +163,8 @@ public function coverExternal(string $url): DatabaseBuilder
161163
162164 /**
163165 * Adds the property `title` database creation.
164- *
165- * @param string $name
166+ *
167+ * @param string $name
166168 * @return DatabaseBuilder
167169 */
168170 public function addTitle (string $ name = 'Name ' )
@@ -174,8 +176,8 @@ public function addTitle(string $name = 'Name')
174176
175177 /**
176178 * Adds one or multiple properties to the database creation.
177- *
178- * @param PropertyBuilder|Collection|DatabaseSchemeBuilder $properties
179+ *
180+ * @param PropertyBuilder|Collection|DatabaseSchemeBuilder $properties
179181 * @return DatabaseBuilder
180182 */
181183 public function add (PropertyBuilder |Collection |DatabaseSchemeBuilder $ properties ): DatabaseBuilder
@@ -197,8 +199,8 @@ public function add(PropertyBuilder|Collection|DatabaseSchemeBuilder $properties
197199
198200 /**
199201 * Adds multiple properties to the database creation, similar to a Laravel migration.
200- *
201- * @param callable $callback
202+ *
203+ * @param callable $callback
202204 * @return DatabaseBuilder
203205 */
204206 public function scheme (callable $ callback ): DatabaseBuilder
@@ -211,10 +213,10 @@ public function scheme(callable $callback): DatabaseBuilder
211213
212214 /**
213215 * 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
218220 * @return DatabaseBuilder
219221 */
220222 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
227229
228230 /**
229231 * Returns the payload for the database creation.
230- *
232+ *
231233 * @return array
232234 */
233235 public function payload (): array
0 commit comments