Skip to content

Commit 9aab3ef

Browse files
Update Builder.php
1 parent 442bff5 commit 9aab3ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Builder.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ private function query(string $query): \PDOStatement|false
179179

180180
/**
181181
* Close the PDO connection
182+
*
183+
* @link https://www.php.net/manual/en/pdo.connections.php
182184
*/
183185
public function close(): void
184186
{
@@ -200,6 +202,7 @@ private function get(): ?array
200202
*
201203
* @return array
202204
*
205+
* @see \DatabaseFactory\Collections\ToArray::collection()
203206
* @see \DatabaseFactory\Builder::get()
204207
*
205208
*/
@@ -213,13 +216,13 @@ public function toArray(): array
213216
*
214217
* @return string|false
215218
*
219+
* @see \DatabaseFactory\Collections\ToJSON::jsonSerialize()
216220
* @see \DatabaseFactory\Builder::get()
217221
*/
218222
public function toJSON(): string|false
219223
{
220224
return json_encode(
221-
(new Collections\ToJSON($this->get())),
222-
JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT
225+
(new Collections\ToJSON($this->get())), JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT
223226
);
224227
}
225228

0 commit comments

Comments
 (0)