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
55
56
57
58
|
<?php /** * PHP Parser and UML/XMI generator. Reverse-engineering tool. * * A package to scan PHP files and directories, and get an UML/XMI representation * of the parsed classes/packages. * * PHP version 5 * * @category PHP * @package PHP_UML * @author Baptiste Autin <ohlesbeauxjours@yahoo.fr> * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3 * @version SVN: $Revision: 137 $ * @link http://pear.php.net/package/PHP_UML * @link http://www.baptisteautin.com/projects/PHP_UML/ * @since $Date: 2009-12-12 01:06:40 +0100 (sam., 12 déc. 2009) $ */
/** * Maintains a stack of warning messages. * * Worth being checked after a parsing, especially if several classes * share common names, in the PHP files * * @category PHP * @package PHP_UML * @author Baptiste Autin <ohlesbeauxjours@yahoo.fr> * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3 * @link http://pear.php.net/package/PHP_UML */ class PHP_UML_Warning { /** * The $stack to read. * @var array */ static public $stack = array(); /** * Adds a warning message to the pile * * @param string $message The warning message to add */ static public function add($message) { self::$stack[] = $message; } /** * Clears the pile */ static public function clear() { self::$stack = array(); } } ?>
|