芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/vendor/nicmart/tree/src/Node/NodeInterface.php
*/ interface NodeInterface { /** * Set the value of the current node. */ public function setValue(mixed $value): static; /** * Get the current node value. */ public function getValue(): mixed; /** * Add a child. * * @return mixed */ public function addChild(self $child): static; /** * Remove a node from children. */ public function removeChild(self $child): static; /** * Remove all children. */ public function removeAllChildren(): static; /** * Return the array of children. * * @return array
*/ public function getChildren(): array; /** * Replace the children set with the given one. * * @param array
$children * * @return mixed */ public function setChildren(array $children): static; /** * Set the parent node. */ public function setParent(?self $parent = null): void; /** * Return the parent node. */ public function getParent(): ?static; /** * Retrieves all ancestors of node excluding current node. */ public function getAncestors(): array; /** * Retrieves all ancestors of node as well as the node itself. * * @return array
*/ public function getAncestorsAndSelf(): array; /** * Retrieves all neighboring nodes, excluding the current node. */ public function getNeighbors(): array; /** * Returns all neighboring nodes, including the current node. * * @return array
*/ public function getNeighborsAndSelf(): array; /** * Return true if the node is the root, false otherwise. */ public function isRoot(): bool; /** * Return true if the node is a child, false otherwise. */ public function isChild(): bool; /** * Return true if the node has no children, false otherwise. */ public function isLeaf(): bool; /** * Find the root of the node. */ public function root(): static; /** * Return the distance from the current node to the root. */ public function getDepth(): int; /** * Return the height of the tree whose root is this node. */ public function getHeight(): int; /** * Return the number of nodes in a tree. */ public function getSize(): int; /** * Accept method for the visitor pattern (see http://en.wikipedia.org/wiki/Visitor_pattern). */ public function accept(Visitor $visitor): mixed; }