Collection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A add() 0 4 1
1
<?php
2
3
namespace WPApi\Model;
4
5
class Collection
6
{
7
    private $items = array();
8
9
    public function add($item)
10
    {
11
        $this->items[] = $item;
12
    }
13
}
14