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

Collection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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