File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
src/Tempest/Database/src/Builder/QueryBuilders Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ final class CountQueryBuilder
1818{
1919 use HasConditions;
2020
21- /** @var class-string<TModelClass> $modelClass */
22- private readonly string $ modelClass ;
23-
2421 private ?ModelDefinition $ modelDefinition ;
2522
2623 private CountStatement $ count ;
@@ -30,7 +27,6 @@ final class CountQueryBuilder
3027 public function __construct (string |object $ model , ?string $ column = null )
3128 {
3229 $ this ->modelDefinition = ModelDefinition::tryFrom ($ model );
33- $ this ->modelClass = is_object ($ model ) ? $ model ::class : $ model ;
3430
3531 $ this ->count = new CountStatement (
3632 table: $ this ->resolveTable ($ model ),
@@ -91,11 +87,6 @@ public function build(array $bindings = []): Query
9187 return new Query ($ this ->count , [...$ this ->bindings , ...$ bindings ]);
9288 }
9389
94- private function clone (): self
95- {
96- return clone $ this ;
97- }
98-
9990 private function resolveTable (string |object $ model ): TableDefinition
10091 {
10192 if ($ this ->modelDefinition === null ) {
You can’t perform that action at this time.
0 commit comments