Skip to content

Commit 2bef3f7

Browse files
refactor: reorder static factory method definition
1 parent a67cf84 commit 2bef3f7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/ChromaDB.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66

77
class ChromaDB
88
{
9+
/**
10+
* Creates a new factory instance to configure a custom ChromaDB Client
11+
*/
12+
public static function factory(): Factory
13+
{
14+
return new Factory();
15+
}
16+
917
/**
1018
* @deprecated Use ChromaDB::local()->connect() or ChromaDB::factory()->connect() instead.
1119
*/
@@ -38,14 +46,6 @@ public static function local(
3846
return $factory;
3947
}
4048

41-
/**
42-
* Creates a new factory instance to configure a custom ChromaDB Client
43-
*/
44-
public static function factory(): Factory
45-
{
46-
return new Factory();
47-
}
48-
4949
/**
5050
* Creates a new factory instance configured for Chroma Cloud.
5151
*/

0 commit comments

Comments
 (0)