Completed
Push — master ( 6af305...285eba )
by Andrii
02:22
created

Collection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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