Completed
Branch master (6af305)
by Andrii
02:24
created

Collection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 3
cp 0.6667
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1.037
1
<?php
2
3
/*
4
 * Collection library for PHP
5
 *
6
 * @link      https://github.com/hiqdev/php-collection
7
 * @package   php-collection
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\php\collection;
13
14
use ArrayAccess;
15
use IteratorAggregate;
16
17
/**
18
 * Collection class.
19
 */
20
class Collection implements ArrayAccess, IteratorAggregate
21
{
22
    use CollectionTrait;
23
24 18
    public function __construct(array $items = [])
25
    {
26 18
        $this->_items = $items;
27
    }
28
}
29