@@ 78-84 (lines=7) @@ | ||
75 | * |
|
76 | * @return Entities\IMessage |
|
77 | */ |
|
78 | public function success($message, $title = NULL) : Entities\IMessage |
|
79 | { |
|
80 | $args = func_get_args(); |
|
81 | array_splice($args, 1, 0, ['success']); |
|
82 | ||
83 | return call_user_func_array([$this, 'setMessage'], $args); |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * Flash an information message |
|
@@ 94-100 (lines=7) @@ | ||
91 | * |
|
92 | * @return Entities\IMessage |
|
93 | */ |
|
94 | public function info($message, $title = NULL) : Entities\IMessage |
|
95 | { |
|
96 | $args = func_get_args(); |
|
97 | array_splice($args, 1, 0, ['info']); |
|
98 | ||
99 | return call_user_func_array([$this, 'setMessage'], $args); |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * Flash a warning message |
|
@@ 110-116 (lines=7) @@ | ||
107 | * |
|
108 | * @return Entities\IMessage |
|
109 | */ |
|
110 | public function warning($message, $title = NULL) : Entities\IMessage |
|
111 | { |
|
112 | $args = func_get_args(); |
|
113 | array_splice($args, 1, 0, ['warning']); |
|
114 | ||
115 | return call_user_func_array([$this, 'setMessage'], $args); |
|
116 | } |
|
117 | ||
118 | /** |
|
119 | * Flash an error message |
|
@@ 126-132 (lines=7) @@ | ||
123 | * |
|
124 | * @return Entities\IMessage |
|
125 | */ |
|
126 | public function error($message, $title = NULL) : Entities\IMessage |
|
127 | { |
|
128 | $args = func_get_args(); |
|
129 | array_splice($args, 1, 0, ['danger']); |
|
130 | ||
131 | return call_user_func_array([$this, 'setMessage'], $args); |
|
132 | } |
|
133 | ||
134 | /** |
|
135 | * Add an "important" flash to the session |