Returns the siblings nodes of the current selection.
public siblings ( ) : |
||
return | A Crawler instance with the sibling nodes |
/** * @param Crawler $block */ public function climbToHighestParent(Crawler &$block) { while ($block->siblings()->getNode(0) == null) { $block = $block->parents()->first(); } }