MemberDataSharingSegment   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 38
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A jsonSerialize() 0 7 1
1
<?php
2
3
namespace Audiens\AppnexusClient\entity;
4
5
class MemberDataSharingSegment implements \JsonSerializable
6
{
7
    use HydratableTrait;
8
9
    /** @var int */
10
    protected $id;
11
12
    /** @var string|null */
13
    protected $name;
14
15
    public function getId(): int
16
    {
17
        return $this->id;
18
    }
19
20
    public function setId(int $id)
21
    {
22
        $this->id = $id;
23
    }
24
25
    public function getName(): ?string
26
    {
27
        return $this->name;
28
    }
29
30
    public function setName(string $name)
31
    {
32
        $this->name = $name;
33
    }
34
35
    public function jsonSerialize()
36
    {
37
        return [
38
            'id' => $this->getId(),
39
            'name' => $this->getName(),
40
        ];
41
    }
42
}
43