Skip to content

Commit

Permalink
Improve PHP docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jan 16, 2024
1 parent a6f2bda commit 88466fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,15 @@ protected function prepareHeader($header = []): array
}

/**
* @param class-string $className
* @template T of object
* @param class-string<T> $className
* @param array<string> $header
*
* @throws Exception
* @throws MappingFailed
* @throws TypeCastingFailed
*
* @return iterator<T>
*/
public function getRecordsAsObject(string $className, array $header = []): Iterator
{
Expand Down
4 changes: 3 additions & 1 deletion src/ResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ public function getRecords(array $header = []): Iterator
}

/**
* @param class-string $className
* @template T of object
* @param class-string<T> $className
* @param array<string> $header
*
* @throws Exception
* @throws MappingFailed
* @throws TypeCastingFailed
* @return iterator<T>
*/
public function getRecordsAsObject(string $className, array $header = []): Iterator
{
Expand Down

0 comments on commit 88466fd

Please sign in to comment.