Passed
Pull Request — master (#4)
by
unknown
02:33
created

Metadata::getProcess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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