Metadata   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 84
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 8
eloc 13
c 2
b 0
f 1
dl 0
loc 84
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getService() 0 3 1
A getProcess() 0 3 1
A setSystem() 0 3 1
A setService() 0 3 1
A setUser() 0 3 1
A setProcess() 0 3 1
A getSystem() 0 3 1
A getUser() 0 3 1
1
<?php
2
3
namespace SamuelBednarcik\ElasticAPMAgent\Events;
4
5
class Metadata
6
{
7
    /**
8
     * @var array|null
9
     */
10
    protected $service;
11
12
    /**
13
     * @var array|null
14
     */
15
    protected $process;
16
17
    /**
18
     * @var array|null
19
     */
20
    protected $system;
21
22
    /**
23
     * @var array|null
24
     */
25
    protected $user;
26
27
    /**
28
     * @return array|null
29
     */
30
    public function getService(): ?array
31
    {
32
        return $this->service;
33
    }
34
35
    /**
36
     * @param array|null $service
37
     */
38
    public function setService(?array $service): void
39
    {
40
        $this->service = $service;
41
    }
42
43
    /**
44
     * @return array|null
45
     */
46
    public function getProcess(): ?array
47
    {
48
        return $this->process;
49
    }
50
51
    /**
52
     * @param array|null $process
53
     */
54
    public function setProcess(?array $process): void
55
    {
56
        $this->process = $process;
57
    }
58
59
    /**
60
     * @return array|null
61
     */
62
    public function getSystem(): ?array
63
    {
64
        return $this->system;
65
    }
66
67
    /**
68
     * @param array|null $system
69
     */
70
    public function setSystem(?array $system): void
71
    {
72
        $this->system = $system;
73
    }
74
75
    /**
76
     * @return array|null
77
     */
78
    public function getUser(): ?array
79
    {
80
        return $this->user;
81
    }
82
83
    /**
84
     * @param array|null $user
85
     */
86
    public function setUser(?array $user): void
87
    {
88
        $this->user = $user;
89
    }
90
}
91