Skip to content

Commit f2e561a

Browse files
Merge pull request #9 from centralnic-reseller/typedeclarationissue
fix(hexonet response): fn addColumn patched type declaration issue
2 parents 0b5d215 + 06a0ad0 commit f2e561a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/HEXONET/Response.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ public function isPending(): bool
212212
* Add a column to the column list
213213
* @param string $key column name
214214
* @param string[] $data array of column data
215-
* @return $this
215+
* @return \CNIC\ResponseInterface
216216
*/
217-
public function addColumn($key, $data): self
217+
public function addColumn($key, $data): \CNIC\ResponseInterface
218218
{
219219
$col = new Column($key, $data);
220220
$this->columns[] = $col;
@@ -225,9 +225,9 @@ public function addColumn($key, $data): self
225225
/**
226226
* Add a record to the record list
227227
* @param array $h row hash data
228-
* @return $this
228+
* @return \CNIC\ResponseInterface
229229
*/
230-
public function addRecord($h): self
230+
public function addRecord($h): \CNIC\ResponseInterface
231231
{
232232
$this->records[] = new Record($h);
233233
return $this;
@@ -555,9 +555,9 @@ public function hasPreviousPage(): bool
555555

556556
/**
557557
* Reset index in record list back to zero
558-
* @return $this
558+
* @return \CNIC\ResponseInterface
559559
*/
560-
public function rewindRecordList(): self
560+
public function rewindRecordList(): \CNIC\ResponseInterface
561561
{
562562
$this->recordIndex = 0;
563563
return $this;

0 commit comments

Comments
 (0)