1 | <?php |
||
5 | class Message |
||
6 | { |
||
7 | /** |
||
8 | * The title of the message. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $title; |
||
13 | |||
14 | /** |
||
15 | * The body of the message. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $body; |
||
20 | |||
21 | /** |
||
22 | * Create a new class instance. |
||
23 | * |
||
24 | * @param \Exception $e |
||
25 | */ |
||
26 | 24 | public function __construct(\Exception $e) |
|
30 | |||
31 | /** |
||
32 | * Set the title of the message. |
||
33 | * |
||
34 | * @param \Exception $e |
||
35 | * |
||
36 | * @return self |
||
37 | */ |
||
38 | 24 | private function setTitle(\Exception $e) |
|
48 | |||
49 | /** |
||
50 | * Set the body of the message. |
||
51 | * |
||
52 | * @param \Exception $e |
||
53 | * |
||
54 | * @return self |
||
55 | */ |
||
56 | 24 | private function setBody(\Exception $e) |
|
75 | |||
76 | /** |
||
77 | * Get the body of the message. |
||
78 | * |
||
79 | * @return string |
||
80 | */ |
||
81 | 12 | public function getBody() |
|
85 | |||
86 | /** |
||
87 | * Get the title of the message. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 12 | public function getTitle() |
|
95 | } |
||
96 |