public function appendTo(QueryPath $dest) { foreach ($this->matches as $m) { $dest->append($m); } return $this; }
/** * Attach any items from the list if they match the selector. * * If no selector is specified, this will remove all current matches from * the document. * * @param QueryPath $dest * A QueryPath Selector. * @return QueryPath * The Query path wrapping a list of removed items. * @see replaceAll() * @see replaceWith() * @see removeChildren() * @since 2.1 * @author eabrand */ public function attach(QueryPath $dest) { foreach ($this->last as $m) { $dest->append($m); } return $this; }