public final function href($path, $query = NULL) { if ($query) { $query = http_build_query($query, NULL, '&'); if ($query !== '') { $path .= '?' . $query; } } $this->attrs['href'] = $path; return $this; }