Completed
Branch BUG-10636-remove-unnecessary-b... (dfa227)
by
unknown
35:02 queued 23:26
created

Notice::func()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace EventEspresso\core\services\notices;
4
5
defined('EVENT_ESPRESSO_VERSION') || exit;
6
7
8
9
/**
10
 * Class Notice
11
 * DTO for temporarily holding notification information until it can be processed
12
 *
13
 * @package       Event Espresso
14
 * @author        Brent Christensen
15
 * @since         $VID:$
16
 */
17
class Notice implements NoticeInterface
18
{
19
20
    const ERROR = 'error';
21
    const ATTENTION = 'attention';
22
    const SUCCESS = 'success';
23
24
    /**
25
     * @var string $type
26
     */
27
    private $type;
28
29
30
    /**
31
     * @var string $message
32
     */
33
    private $message;
34
35
36
    /**
37
     * @var string $file
38
     */
39
    private $file;
40
41
42
    /**
43
     * @var string $func
44
     */
45
    private $func;
46
47
48
    /**
49
     * @var string $line
50
     */
51
    private $line;
52
53
54
55
    /**
56
     * Notice constructor.
57
     *
58
     * @param string $type
59
     * @param string $message
60
     * @param string $file
61
     * @param string $func
62
     * @param string $line
63
     */
64
    public function __construct($type, $message, $file, $func, $line)
65
    {
66
        $this->type = $type;
67
        $this->message = $message;
68
        $this->file = $file;
69
        $this->func = $func;
70
        $this->line = $line;
71
    }
72
73
74
75
    /**
76
     * @return string
77
     */
78
    public function type()
79
    {
80
        return $this->type;
81
    }
82
83
84
85
    /**
86
     * @return string
87
     */
88
    public function message()
89
    {
90
        return $this->message;
91
    }
92
93
94
95
    /**
96
     * @return string
97
     */
98
    public function file()
99
    {
100
        return $this->file;
101
    }
102
103
104
105
    /**
106
     * @return string
107
     */
108
    public function func()
109
    {
110
        return $this->func;
111
    }
112
113
114
115
    /**
116
     * @return string
117
     */
118
    public function line()
119
    {
120
        return $this->line;
121
    }
122
123
124
125
}
126