public function last() {
    $matches = [];
    if (!empty($this->nodes)) {
      $matches[] = $this->nodes[count($this->nodes) - 1];
    }
    return new NodeCollection($matches, FALSE);
  }
public function last() {
    $matches = [];
    if (!empty($this->nodes)) {
      $matches[] = $this->nodes[count($this->nodes) - 1];
    }
    return new NodeCollection($matches, FALSE);
  }
public function last ( ) { $ matches = [ ] ; if ( ! empty ( $ this -> nodes ) ) { $ matches [ ] = $ this -> nodes [ count ( $ this -> nodes ) - 1 ] ; } return new NodeCollection ( $ matches , FALSE ) ; }
Reduce the set of matched nodes to the last in the set.
Reduce the set of matched nodes to the last in the set .