Passed
Push — master ( a4571b...162929 )
by Chris
07:18
created

StandardList::insertItem()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
namespace WebTheory\Collection\Driver;
4
5
use WebTheory\Collection\Contracts\ArrayDriverInterface;
6
use WebTheory\Collection\Driver\Abstracts\AbstractArrayDriver;
7
8
class StandardList extends AbstractArrayDriver implements ArrayDriverInterface
9
{
10 306
    public function insertItem(array &$array, object $item, $offset = null): void
11
    {
12 306
        $array[] = $item;
13
    }
14
}
15