Completed
Push — master ( 5ebe79...868b20 )
by Owen
01:17
created

MutableCollection::map()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace Mundanity\Collection;
4
5
6
/**
7
 * A mutable collection.
8
 *
9
 */
10
class MutableCollection extends Collection implements MutableCollectionInterface
11
{
12
    use MutableTrait;
13
14
    /**
15
     * {@inheritdoc}
16
     *
17
     */
18
    public function add($item)
19
    {
20
        $this->data[] = $item;
21
        return $this;
22
    }
23
}
24