Event   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

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