Skip to content

Commit c5b632e

Browse files
committed
refactor: renames candidate count method
1 parent f99535e commit c5b632e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Results/DTO/GenerativeAiResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function getProviderMetadata(): array
111111
*
112112
* @return int The total number of candidates.
113113
*/
114-
public function getTotalCandidates(): int
114+
public function getCandidateCount(): int
115115
{
116116
return count($this->candidates);
117117
}
@@ -125,7 +125,7 @@ public function getTotalCandidates(): int
125125
*/
126126
public function hasMultipleCandidates(): bool
127127
{
128-
return count($this->candidates) > 1;
128+
return $this->getCandidateCount() > 1;
129129
}
130130

131131
/**

0 commit comments

Comments
 (0)