mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 08:42:14 -04:00
(Csv/Json)ResultSet::current(): Add phpDoc
This commit is contained in:
parent
106e7abc65
commit
2a26f28106
2 changed files with 8 additions and 2 deletions
|
|
@ -14,7 +14,10 @@ class CsvResultSet extends ResultSet
|
|||
{
|
||||
protected $isCacheDisabled = true;
|
||||
|
||||
public function current()
|
||||
/**
|
||||
* @return array<string, ?string>
|
||||
*/
|
||||
public function current(): array
|
||||
{
|
||||
return $this->extractKeysAndValues(parent::current());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@ class JsonResultSet extends ResultSet
|
|||
{
|
||||
protected $isCacheDisabled = true;
|
||||
|
||||
public function current()
|
||||
/**
|
||||
* @return array<string, ?string>
|
||||
*/
|
||||
public function current(): array
|
||||
{
|
||||
return $this->createObject(parent::current());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue