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

Collection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

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

1 Method

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