value pairs * * This is an extension to RFC-3986 but is quite useful when working with * most common URI types * * @return array */ public function getQueryAsArray(); /** * Get the URI fragment * * @return string|null */ public function getFragment(); /** * Set the URI scheme * * If the scheme is not valid according to the generic scheme syntax or * is not acceptable by the specific URI class (e.g. 'http' or 'https' are * the only acceptable schemes for the Laminas\Uri\Http class) an exception * will be thrown. * * You can check if a scheme is valid before setting it using the * validateScheme() method. * * @param string $scheme * @throws Exception\InvalidUriPartException * @return Uri */ public function setScheme($scheme); /** * Set the URI User-info part (usually user:password) * * @param string $userInfo * @return Uri * @throws Exception\InvalidUriPartException If the schema definition does not have this part. */ public function setUserInfo($userInfo); /** * Set the URI host * * Note that the generic syntax for URIs allows using host names which * are not necessarily IPv4 addresses or valid DNS host names. For example, * IPv6 addresses are allowed as well, and also an abstract "registered name" * which may be any name composed of a valid set of characters, including, * for example, tilda (~) and underscore (_) which are not allowed in DNS * names. * * Subclasses of Uri may impose more strict validation of host names - for * example the HTTP RFC clearly states that only IPv4 and valid DNS names * are allowed in HTTP URIs. * * @param string $host * @throws Exception\InvalidUriPartException * @return Uri */ public function setHost($host); /** * Set the port part of the URI * * @param int $port * @return Uri */ public function setPort($port); /** * Set the path * * @param string $path * @return Uri */ public function setPath($path); /** * Set the query string * * If an array is provided, will encode this array of parameters into a * query string. Array values will be represented in the query string using * PHP's common square bracket notation. * * @param string|array $query * @return Uri */ public function setQuery($query); /** * Set the URI fragment part * * @param string $fragment * @return Uri * @throws Exception\InvalidUriPartException If the schema definition does not have this part. */ public function setFragment($fragment); /** * Magic method to convert the URI to a string * * @return string */ public function __toString(); }