RepeatableNameCollection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 9 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Blackmine\Collection;
6
7
class RepeatableNameCollection extends IdentityCollection
8
{
9
    public function toArray(): array
10
    {
11
        $ret = [];
12
        $elements = parent::toArray(); // TODO: Change the autogenerated stub
13
        foreach ($elements as $element) {
14
            $ret[] = $element["name"];
15
        }
16
17
        return $ret;
18
    }
19
}
20