ImmSet   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 18
ccs 0
cts 6
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getIterator() 0 4 1
1
<?php
2
3
namespace Collections\Immutable;
4
5
use Collections\ConstSetInterface;
6
use Collections\Iterator\SetIterator;
7
use Collections\Traits\ImmSetLikeTrait;
8
9
class ImmSet implements ConstSetInterface
0 ignored issues
show
Bug introduced by
There is one abstract method each in this class; you could implement it, or declare this class as abstract.
Loading history...
10
{
11
    use ImmSetLikeTrait;
12
13
    public function __construct($array = null)
14
    {
15
        $this->init($array);
16
    }
17
18
    /**
19
     * Gets the collection's iterator
20
     * @return SetIterator
21
     */
22
    public function getIterator()
23
    {
24
        return new SetIterator($this->container);
25
    }
26
}
27