You are here

public function QueryPath::andSelf in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/QueryPath.php \QueryPath::andSelf()
  2. 7.2 QueryPath/QueryPath.php \QueryPath::andSelf()

File

QueryPath/QueryPath.php, line 1005

Class

QueryPath

Code

public function andSelf() {
  $last = $this->matches;
  foreach ($this->last as $item) {
    $this->matches
      ->attach($item);
  }
  $this->last = $last;
  return $this;
}