1
2/*
3 +------------------------------------------------------------------------+
4 | Phalcon Framework                                                      |
5 +------------------------------------------------------------------------+
6 | Copyright (c) 2011-2017 Phalcon Team (https://phalconphp.com)          |
7 +------------------------------------------------------------------------+
8 | This source file is subject to the New BSD License that is bundled     |
9 | with this package in the file LICENSE.txt.                             |
10 |                                                                        |
11 | If you did not receive a copy of the license and are unable to         |
12 | obtain it through the world-wide-web, please send an email             |
13 | to license@phalconphp.com so we can send you a copy immediately.       |
14 +------------------------------------------------------------------------+
15 | Authors: Andres Gutierrez <andres@phalconphp.com>                      |
16 |          Eduar Carvajal <eduar@phalconphp.com>                         |
17 +------------------------------------------------------------------------+
18 */
19
20namespace Phalcon;
21
22/**
23 * Phalcon\FlashInterface
24 *
25 * Interface for Phalcon\Flash
26 */
27interface FlashInterface
28{
29
30	/**
31	 * Shows a HTML error message
32	 */
33	public function error(message);
34
35	/**
36	 * Shows a HTML notice/information message
37	 */
38	public function notice(message);
39
40	/**
41	 * Shows a HTML success message
42	 */
43	public function success(message);
44
45	/**
46	 * Shows a HTML warning message
47	 */
48	public function warning(message);
49
50	/**
51	 * Outputs a message
52	 */
53	public function message(string type, string message) -> void;
54}
55