/
FlashInterface.zep
54 lines (47 loc) · 1.12 KB
/
FlashInterface.zep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the
* LICENSE.txt file that was distributed with this source code.
*/
namespace Phalcon\Flash;
/**
* Phalcon\Flash\FlashInterface
*
* Interface for Phalcon\Flash classes
*/
interface FlashInterface
{
/**
* Shows a HTML error message
*
* @return null|string|void
*/
public function error(string message) -> string | null;
/**
* Outputs a message
*
* @return null|string|void
*/
public function message(string type, string message) -> string | null;
/**
* Shows a HTML notice/information message
*
* @return null|string|void
*/
public function notice(string message) -> string | null;
/**
* Shows a HTML success message
*
* @return null|string|void
*/
public function success(string message) -> string | null;
/**
* Shows a HTML warning message
*
* @return null|string|void
*/
public function warning(string message) -> string | null;
}