Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsaintpe committed Apr 26, 2019
1 parent acfdddd commit fbd3326
Showing 1 changed file with 0 additions and 79 deletions.
79 changes: 0 additions & 79 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,85 +63,6 @@ class TestEntity implements LTreeEntityInterface
{
$this->children = new ArrayCollection();
}

/**
* @inheritDoc
*/
public function setParent($parent)
{
$this->parent = $parent;

return $this;
}

/**
* @inheritDoc
*/
public function getParent()
{
return $this->parent;
}

/**
* @inheritDoc
*/
public function getPath(): array
{
return $this->path ?: [];
}

/**
* @inheritDoc
*/
public function setPath(?array $path): self
{
$this->path = $path;
return $this;
}

/**
* @inheritDoc
*/
public function getLevel(): int
{
return count($this->getPath());
}

/**
* @inheritDoc
*/
public function addChildren($child)
{
if (!$this->children->contains($child)) {
$this->children[] = $child;
$child->setParent($this);
}

return $this;
}

/**
* @inheritDoc
*/
public function removeChildren($child)
{
if ($this->children->contains($child)) {
$this->children->removeElement($child);
if ($child->getParent() === $this) {
$child->setParent(null);
}
}

return $this;
}

/**
* @inheritDoc
*/
public function getChildren()
{
return $this->children;
}
}
```

Expand Down

0 comments on commit fbd3326

Please sign in to comment.