EventCollection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A add() 0 5 1
A jsonSerialize() 0 4 1
1
<?php
2
3
namespace EasyTaxi\NewRelic\Entity\Insights;
4
5
class EventCollection extends \ArrayObject implements \JsonSerializable
6
{
7 4
    public function add(Event $event)
8
    {
9 4
        $this->append($event);
10 4
        return $this;
11
    }
12
13 6
    public function jsonSerialize()
14
    {
15 6
        return $this->getArrayCopy();
16
    }
17
}
18