Metadata::setSystem()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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