MutableCollection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A add() 0 5 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