src/Franzose/ClosureTable/Models/Entity.php
public function addSiblings(array $siblings, $from = null)
    {
        if ($this->exists) {
            if (is_null($from)) {
                $from = $this->getNextAfterLastPosition();
            }

            $parent = $this->getParent();
            /**
             * @var Entity $sibling
             */
            foreach ($siblings as $sibling) {
                $sibling->moveTo($from, $parent);
                $from++;
            }
        }

        return $this;
    }
public function addSiblings(array $siblings, $from = null)
    {
        if ($this->exists) {
            if (is_null($from)) {
                $from = $this->getNextAfterLastPosition();
            }

            $parent = $this->getParent();
            /**
             * @var Entity $sibling
             */
            foreach ($siblings as $sibling) {
                $sibling->moveTo($from, $parent);
                $from++;
            }
        }

        return $this;
    }
public function addSiblings ( array $ siblings , $ from = null ) { if ( $ this -> exists ) { if ( is_null ( $ from ) ) { $ from = $ this -> getNextAfterLastPosition ( ) ; } $ parent = $ this -> getParent ( ) ; /**
             * @var Entity $sibling
             */ foreach ( $ siblings as $ sibling ) { $ sibling -> moveTo ( $ from , $ parent ) ; $ from ++ ; } } return $ this ; }
Appends multiple siblings within the current depth.

@param array $siblings
@param int|null $from
@return $this
Appends multiple siblings within the current depth .