projects
/
PHP_CodeDoc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
55b5969
)
CodeDoc/Parser/Var.php
author
Alan Knowles
<alan@roojs.com>
Fri, 28 Oct 2016 08:23:42 +0000
(16:23 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 28 Oct 2016 08:23:42 +0000
(16:23 +0800)
CodeDoc/Parser/Var.php
patch
|
blob
|
history
diff --git
a/CodeDoc/Parser/Var.php
b/CodeDoc/Parser/Var.php
index
dcf052b
..
7d52e66
100644
(file)
--- a/
CodeDoc/Parser/Var.php
+++ b/
CodeDoc/Parser/Var.php
@@
-39,9
+39,15
@@
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;
- if ($var->name{1} == "_") {
- $var->type = "Private";
- $var->isPublic = 0;
+ if (in_array(T_PRIVATE, $flags)) {
+ $method->type = "Private";
+ $method ->isPublic = 0;
+ $method->visibility = 0;
+ }
+ if (in_array(T_PROTECTED, $flags)) {
+ $method->type = "Protected";
+ $method ->isPublic = 0;
+ $method->visibility = 0;
}
$var->visibility = 1;
}
$var->visibility = 1;