Event   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 14
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 9 1
1
<?php
2
3
namespace EasyTaxi\NewRelic\Entity\Insights;
4
5
use Respect\Validation\Validator;
6
7
class Event implements \JsonSerializable
8
{
9
    public $eventType;
10
11 4
    public function jsonSerialize()
12
    {
13 4
        Validator::stringType()
14 4
            ->notEmpty()
15 4
            ->setName('eventType')
16 4
            ->check($this->eventType);
17
18 1
        return $this;
19
    }
20
}
21