File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ abstract class AbstractNode implements \Countable
24
24
/**
25
25
* @var string
26
26
*/
27
- private $ path ;
27
+ private $ pathAsString ;
28
28
29
29
/**
30
30
* @var array
31
31
*/
32
- private $ pathArray ;
32
+ private $ pathAsArray ;
33
33
34
34
/**
35
35
* @var AbstractNode
@@ -79,30 +79,30 @@ public function id(): string
79
79
80
80
public function pathAsString (): string
81
81
{
82
- if ($ this ->path === null ) {
82
+ if ($ this ->pathAsString === null ) {
83
83
if ($ this ->parent === null ) {
84
- $ this ->path = $ this ->name ;
84
+ $ this ->pathAsString = $ this ->name ;
85
85
} else {
86
- $ this ->path = $ this ->parent ->pathAsString () . \DIRECTORY_SEPARATOR . $ this ->name ;
86
+ $ this ->pathAsString = $ this ->parent ->pathAsString () . \DIRECTORY_SEPARATOR . $ this ->name ;
87
87
}
88
88
}
89
89
90
- return $ this ->path ;
90
+ return $ this ->pathAsString ;
91
91
}
92
92
93
93
public function pathAsArray (): array
94
94
{
95
- if ($ this ->pathArray === null ) {
95
+ if ($ this ->pathAsArray === null ) {
96
96
if ($ this ->parent === null ) {
97
- $ this ->pathArray = [];
97
+ $ this ->pathAsArray = [];
98
98
} else {
99
- $ this ->pathArray = $ this ->parent ->pathAsArray ();
99
+ $ this ->pathAsArray = $ this ->parent ->pathAsArray ();
100
100
}
101
101
102
- $ this ->pathArray [] = $ this ;
102
+ $ this ->pathAsArray [] = $ this ;
103
103
}
104
104
105
- return $ this ->pathArray ;
105
+ return $ this ->pathAsArray ;
106
106
}
107
107
108
108
public function parent (): ?self
You can’t perform that action at this time.
0 commit comments