File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function __toString()
109
109
foreach ($ this ->properties as $ property ) {
110
110
$ properties [] = Helpers::formatDocComment ((string ) $ property ->getComment ())
111
111
. ($ property ->getVisibility () ?: 'public ' ) . ($ property ->isStatic () ? ' static ' : '' ) . ' $ ' . $ property ->getName ()
112
- . ($ property ->value === NULL ? '' : ' = ' . Helpers::dump ($ property ->value ))
112
+ . ($ property ->getValue () === NULL ? '' : ' = ' . Helpers::dump ($ property ->getValue () ))
113
113
. '; ' ;
114
114
}
115
115
Original file line number Diff line number Diff line change 14
14
15
15
/**
16
16
* Method parameter description.
17
+ *
18
+ * @property mixed $defaultValue
17
19
*/
18
20
class Parameter
19
21
{
@@ -33,7 +35,7 @@ class Parameter
33
35
private $ hasDefaultValue = FALSE ;
34
36
35
37
/** @var mixed */
36
- public $ defaultValue ;
38
+ private $ defaultValue ;
37
39
38
40
39
41
/**
Original file line number Diff line number Diff line change 14
14
15
15
/**
16
16
* Class property description.
17
+ *
18
+ * @property mixed $value
17
19
*/
18
20
class Property
19
21
{
@@ -23,7 +25,7 @@ class Property
23
25
use Traits \CommentAware;
24
26
25
27
/** @var mixed */
26
- public $ value ;
28
+ private $ value ;
27
29
28
30
/** @var bool */
29
31
private $ static = FALSE ;
@@ -42,7 +44,7 @@ public function setValue($val)
42
44
/**
43
45
* @return mixed
44
46
*/
45
- public function getValue ()
47
+ public function & getValue ()
46
48
{
47
49
return $ this ->value ;
48
50
}
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ protected function parametersToString()
216
216
. ($ param ->isReference () ? '& ' : '' )
217
217
. ($ variadic ? '... ' : '' )
218
218
. '$ ' . $ param ->getName ()
219
- . ($ param ->hasDefaultValue () && !$ variadic ? ' = ' . Helpers::dump ($ param ->defaultValue ) : '' );
219
+ . ($ param ->hasDefaultValue () && !$ variadic ? ' = ' . Helpers::dump ($ param ->getDefaultValue () ) : '' );
220
220
}
221
221
return '( ' . implode (', ' , $ params ) . ') ' ;
222
222
}
You can’t perform that action at this time.
0 commit comments