diff --git a/README.md b/README.md index ee60c29..c9fc462 100644 --- a/README.md +++ b/README.md @@ -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; - } } ```