Passed
Push — master ( de0918...331287 )
by Sebastian
03:34
created

ArrayList   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 4
cp 0
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
 * Copyright (C) 2016 Sebastian Böttger <[email protected]>
5
 * You may use, distribute and modify this code under the
6
 * terms of the MIT license.
7
 *
8
 * You should have received a copy of the MIT license with
9
 * this file. If not, please visit: https://opensource.org/licenses/mit-license.php
10
 */
11
12
namespace Seboettg\Collection;
13
14
/**
15
 * ArrayList is a useful wrapper class for an array, similar to Java's ArrayList
16
 * @package Seboettg\Collection
17
 *
18
 * @author Sebastian Böttger <[email protected]>
19
 */
20
class ArrayList implements Collection
21
{
22
    use ArrayListTrait;
23
24
    /**
25
     * ArrayList constructor.
26
     * @param array $data
27
     */
28
    public function __construct(array $data = [])
29
    {
30
        $this->array = $data;
31
    }
32
}
33