@@ -117,6 +117,9 @@ |
||
117 | 117 | return $this->addVisitors($analyzer, $this->visitors, 'analyze'); |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @param string $traverse |
|
122 | + */ |
|
120 | 123 | private function addVisitors(VisitableAnalyzer $analyzer, array $visitors, $traverse) |
121 | 124 | { |
122 | 125 | foreach($visitors as $key => $closure) |
@@ -45,7 +45,7 @@ |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | private function initializeVisitors() |
48 | - { |
|
48 | + { |
|
49 | 49 | $this->visitors = array( |
50 | 50 | |
51 | 51 | 'property.public' => function(array $config) { |
@@ -12,6 +12,9 @@ |
||
12 | 12 | $parameterType, |
13 | 13 | $method; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $parameterTypeName |
|
17 | + */ |
|
15 | 18 | public function __construct(Node $node, $parameterTypeName, $parameterType, $method) |
16 | 19 | { |
17 | 20 | parent::__construct($node); |
@@ -86,6 +86,9 @@ |
||
86 | 86 | return $allowed; |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @return string |
|
91 | + */ |
|
89 | 92 | private function extractClassNameFromFullName($classFullname) |
90 | 93 | { |
91 | 94 | $classname = $classFullname; |
@@ -20,11 +20,11 @@ |
||
20 | 20 | { |
21 | 21 | $this->privateAttributes = array(); |
22 | 22 | $this->publicMethods = array(); |
23 | - } |
|
23 | + } |
|
24 | 24 | elseif($node instanceof Property) |
25 | 25 | { |
26 | 26 | $this->enterProperty($node); |
27 | - } |
|
27 | + } |
|
28 | 28 | elseif($node instanceof ClassMethod) |
29 | 29 | { |
30 | 30 | $this->enterClassMethod($node); |