You are here

public function QueryPathCssEventHandler::getMatches in QueryPath 6

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

File

QueryPath/CssEventHandler.php, line 77

Class

QueryPathCssEventHandler

Code

public function getMatches() {
  $result = new SplObjectStorage();
  foreach ($this->alreadyMatched as $m) {
    $result
      ->attach($m);
  }
  foreach ($this->matches as $m) {
    $result
      ->attach($m);
  }
  return $result;
}