ErrorException::getModule()   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 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace SamuelBednarcik\ElasticAPMAgent\Events;
4
5
class ErrorException
6
{
7
    /**
8
     * @var string|null
9
     */
10
    protected $code;
11
12
    /**
13
     * @var string|null
14
     */
15
    protected $message;
16
17
    /**
18
     * @var string|null
19
     */
20
    protected $module;
21
22
    /**
23
     * @var array|null
24
     */
25
    protected $attributes;
26
27
    /**
28
     * @var string|null
29
     */
30
    protected $type;
31
32
    /**
33
     * @var bool|null
34
     */
35
    protected $handled;
36
37
    /**
38
     * @return null|string
39
     */
40
    public function getCode(): ?string
41
    {
42
        return $this->code;
43
    }
44
45
    /**
46
     * @param null|string $code
47
     */
48
    public function setCode(?string $code): void
49
    {
50
        $this->code = $code;
51
    }
52
53
    /**
54
     * @return null|string
55
     */
56
    public function getMessage(): ?string
57
    {
58
        return $this->message;
59
    }
60
61
    /**
62
     * @param null|string $message
63
     */
64
    public function setMessage(?string $message): void
65
    {
66
        $this->message = $message;
67
    }
68
69
    /**
70
     * @return null|string
71
     */
72
    public function getModule(): ?string
73
    {
74
        return $this->module;
75
    }
76
77
    /**
78
     * @param null|string $module
79
     */
80
    public function setModule(?string $module): void
81
    {
82
        $this->module = $module;
83
    }
84
85
    /**
86
     * @return array|null
87
     */
88
    public function getAttributes(): ?array
89
    {
90
        return $this->attributes;
91
    }
92
93
    /**
94
     * @param array|null $attributes
95
     */
96
    public function setAttributes(?array $attributes): void
97
    {
98
        $this->attributes = $attributes;
99
    }
100
101
    /**
102
     * @return null|string
103
     */
104
    public function getType(): ?string
105
    {
106
        return $this->type;
107
    }
108
109
    /**
110
     * @param null|string $type
111
     */
112
    public function setType(?string $type): void
113
    {
114
        $this->type = $type;
115
    }
116
117
    /**
118
     * @return bool|null
119
     */
120
    public function getHandled(): ?bool
121
    {
122
        return $this->handled;
123
    }
124
125
    /**
126
     * @param bool|null $handled
127
     */
128
    public function setHandled(?bool $handled): void
129
    {
130
        $this->handled = $handled;
131
    }
132
}
133