projects
/
PHP_CodeDoc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4151f4
)
CodeDoc/Parser/Var.php
author
Alan Knowles
<alan@roojs.com>
Fri, 28 Oct 2016 08:25:01 +0000
(16:25 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 28 Oct 2016 08:25:01 +0000
(16:25 +0800)
CodeDoc/Parser/Var.php
patch
|
blob
|
history
diff --git
a/CodeDoc/Parser/Var.php
b/CodeDoc/Parser/Var.php
index
7d52e66
..
f3581eb
100644
(file)
--- a/
CodeDoc/Parser/Var.php
+++ b/
CodeDoc/Parser/Var.php
@@
-39,16
+39,21
@@
class PHP_CodeDoc_Parser_Var {
$var->name = $this->tokens[$this->pos+2][1];
$var->type = "Public";
$var->isPublic = 1;
$var->name = $this->tokens[$this->pos+2][1];
$var->type = "Public";
$var->isPublic = 1;
+ $var->isStatic = 0;
if (in_array(T_PRIVATE, $flags)) {
if (in_array(T_PRIVATE, $flags)) {
- $
method
->type = "Private";
- $
method
->isPublic = 0;
- $
method
->visibility = 0;
+ $
var
->type = "Private";
+ $
var
->isPublic = 0;
+ $
var
->visibility = 0;
}
if (in_array(T_PROTECTED, $flags)) {
}
if (in_array(T_PROTECTED, $flags)) {
- $
method
->type = "Protected";
- $
method
->isPublic = 0;
- $
method
->visibility = 0;
+ $
var
->type = "Protected";
+ $
var
->isPublic = 0;
+ $
var
->visibility = 0;
}
}
+ if (in_array(T_STATIC, $flags)) {
+ $var->isStatic = 1;
+ }
+
$var->visibility = 1;
PHP_CodeDoc_Parser_Var::_store_tokens($var);
$var->visibility = 1;
PHP_CodeDoc_Parser_Var::_store_tokens($var);