Skip to content

Commit 1e95ddd

Browse files
Rename properties
1 parent 13c6844 commit 1e95ddd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Node/AbstractNode.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)