Code

< 40 %
40-60 %
> 60 %
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-2017, 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