Collection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIterator() 0 3 1
1
<?php
2
3
namespace Ianrizky\Illuminate\Database\Eloquent;
4
5
use ArrayIterator;
6
use Illuminate\Database\Eloquent\Collection as BaseCollection;
7
8
class Collection extends BaseCollection
9
{
10
    /**
11
     * {@inheritDoc}
12
     *
13
     * @return \ArrayIterator<\Ianrizky\Illuminate\Database\Eloquent\Model>
14
     */
15
    public function getIterator(): ArrayIterator
16
    {
17
        return new ArrayIterator($this->items);
18
    }
19
}
20