Skip to content

Commit 63aa7a4

Browse files
committed
Fix variable name
1 parent 88dada1 commit 63aa7a4

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/Overrides.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ public function endPointPath(string $overrideId = ''): string
6161
}
6262

6363
/**
64-
* @param string $documentId
64+
* @param string $overrideId
6565
* @param array $config
6666
*
6767
* @return array
6868
* @throws TypesenseClientError|HttpClientException
6969
*/
70-
public function upsert(string $documentId, array $config): array
70+
public function upsert(string $overrideId, array $config): array
7171
{
72-
return $this->apiCall->put($this->endPointPath($documentId), $config);
72+
return $this->apiCall->put($this->endPointPath($overrideId), $config);
7373
}
7474

7575
/**
@@ -84,36 +84,36 @@ public function retrieve(): array
8484
/**
8585
* @inheritDoc
8686
*/
87-
public function offsetExists($documentId): bool
87+
public function offsetExists($overrideId): bool
8888
{
89-
return isset($this->overrides[$documentId]);
89+
return isset($this->overrides[$overrideId]);
9090
}
9191

9292
/**
9393
* @inheritDoc
9494
*/
95-
public function offsetGet($documentId)
95+
public function offsetGet($overrideId)
9696
{
97-
if (!isset($this->overrides[$documentId])) {
98-
$this->overrides[$documentId] = new Override($this->collectionName, $documentId, $this->apiCall);
97+
if (!isset($this->overrides[$overrideId])) {
98+
$this->overrides[$overrideId] = new Override($this->collectionName, $overrideId, $this->apiCall);
9999
}
100100

101-
return $this->overrides[$documentId];
101+
return $this->overrides[$overrideId];
102102
}
103103

104104
/**
105105
* @inheritDoc
106106
*/
107-
public function offsetSet($documentId, $value): void
107+
public function offsetSet($overrideId, $value): void
108108
{
109-
$this->overrides[$documentId] = $value;
109+
$this->overrides[$overrideId] = $value;
110110
}
111111

112112
/**
113113
* @inheritDoc
114114
*/
115-
public function offsetUnset($documentId): void
115+
public function offsetUnset($overrideId): void
116116
{
117-
unset($this->overrides[$documentId]);
117+
unset($this->overrides[$overrideId]);
118118
}
119119
}

0 commit comments

Comments
 (0)