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
2424 /**
2525 * @var string
2626 */
27- private $ path ;
27+ private $ pathAsString ;
2828
2929 /**
3030 * @var array
3131 */
32- private $ pathArray ;
32+ private $ pathAsArray ;
3333
3434 /**
3535 * @var AbstractNode
@@ -79,30 +79,30 @@ public function id(): string
7979
8080 public function pathAsString (): string
8181 {
82- if ($ this ->path === null ) {
82+ if ($ this ->pathAsString === null ) {
8383 if ($ this ->parent === null ) {
84- $ this ->path = $ this ->name ;
84+ $ this ->pathAsString = $ this ->name ;
8585 } else {
86- $ this ->path = $ this ->parent ->pathAsString () . \DIRECTORY_SEPARATOR . $ this ->name ;
86+ $ this ->pathAsString = $ this ->parent ->pathAsString () . \DIRECTORY_SEPARATOR . $ this ->name ;
8787 }
8888 }
8989
90- return $ this ->path ;
90+ return $ this ->pathAsString ;
9191 }
9292
9393 public function pathAsArray (): array
9494 {
95- if ($ this ->pathArray === null ) {
95+ if ($ this ->pathAsArray === null ) {
9696 if ($ this ->parent === null ) {
97- $ this ->pathArray = [];
97+ $ this ->pathAsArray = [];
9898 } else {
99- $ this ->pathArray = $ this ->parent ->pathAsArray ();
99+ $ this ->pathAsArray = $ this ->parent ->pathAsArray ();
100100 }
101101
102- $ this ->pathArray [] = $ this ;
102+ $ this ->pathAsArray [] = $ this ;
103103 }
104104
105- return $ this ->pathArray ;
105+ return $ this ->pathAsArray ;
106106 }
107107
108108 public function parent (): ?self
You can’t perform that action at this time.
0 commit comments