GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ArrayIterator   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __constructIterator() 0 4 1
A getArrayCopy() 0 4 1
A isArrayCompatible() 0 4 1
1
<?php
2
3
namespace Pinq\Iterators\Common;
4
5
/**
6
 * Common functionality for the array iterator
7
 *
8
 * @author Elliot Levin <[email protected]>
9
 */
10
trait ArrayIterator
11
{
12
    /**
13
     * @var array
14
     */
15
    protected $array;
16
17
    public function __constructIterator(array &$array)
18
    {
19
        $this->array =& $array;
20
    }
21
22
    /**
23
     * @return array
24
     */
25
    final public function getArrayCopy()
26
    {
27
        return $this->array;
28
    }
29
30
    /**
31
     * @return bool
32
     */
33
    final public function isArrayCompatible()
34
    {
35
        return true;
36
    }
37
}
38