public function findSiblingRow(EM\RowInterface $row, $next = false)
    {
        if (null === $container = $row->getContainer()) {
            return null;
        }

        return $this->findSibling($container->getRows(), $row, $next);
    }
public function findSiblingRow(EM\RowInterface $row, $next = false)
    {
        if (null === $container = $row->getContainer()) {
            return null;
        }

        return $this->findSibling($container->getRows(), $row, $next);
    }
public function findSiblingRow ( EM \ RowInterface $ row , $ next = false ) { if ( null === $ container = $ row -> getContainer ( ) ) { return null ; } return $ this -> findSibling ( $ container -> getRows ( ) , $ row , $ next ) ; }
Returns the sibling of the given row.

@param EM\RowInterface $row
@param bool            $next Whether to look for the next or the previous

@return EM\RowInterface|null
Returns the sibling of the given row .