Lines 0.00% 0 / 4
Functions and Methods 0.00% 0 / 1
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
Topics 0.00% 0 / 4 0.00% 0 / 1 6 0.00% 0 / 1
 getNames 0.00% 0 / 4 0.00% 0 / 1 6
1<?php
2
3/**
4 * @package Zmsdldb
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 **/
7
8namespace BO\Zmsdldb\Collection;
9
10/**
11 * @extends Base<\BO\Zmsdldb\Entity\Topic>
12 */
13class Topics extends Base
14{
15    /**
16     * @psalm-api
17     */
18    public function getNames(): array
19    {
20        $nameList = array();
21        foreach ($this as $topic) {
22            $nameList[$topic['id']] = $topic['name'];
23        }
24        return $nameList;
25    }
26}