/** * Retrieve the scheme specific part of the URI. * * If no specific part information is present, this method MUST return an empty * string. * * @return string The URI authority, in "[user-info@]host[:port]" format. */ protected function getSchemeSpecificPart() { $auth = $this->getAuthority(); if (!empty($auth)) { $auth = '//' . $auth; } return $auth . $this->formatPath($this->path->getUriComponent(), (bool) $auth) . $this->query->getUriComponent() . $this->fragment->getUriComponent(); }
/** * {@inheritdoc} */ public function filterQuery(callable $callable, $flag = Interfaces\Collection::FILTER_USE_VALUE) { return $this->withProperty('query', $this->query->filter($callable, $flag)); }