Completed
Push — master ( 747a6a...c6c655 )
by Ítalo
02:55
created

ImmDictionary::get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 8
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 6
1
<?php
2
3
namespace Collections\Immutable;
4
5
use Collections\ConstMapInterface;
6
use Collections\Iterator\MapIterator;
7
use Collections\Traits\ImmMapLikeTrait;
8
9
class ImmDictionary implements ConstMapInterface
10
{
11
    use ImmMapLikeTrait;
12
13
    public function __construct($array = null)
14
    {
15
        $this->init($array);
16
    }
17
18
    /**
19
     * Gets the collection's iterator
20
     * @return MapIterator
21
     */
22
    public function getIterator()
23
    {
24
        return new MapIterator($this->container);
25
    }
26
}
27