ImmSet::getIterator()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 1
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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