/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Http
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Http/Uri.php (5027B)
uri = $uri;
$this->base = $base;
$this->webroot = $webroot;
}
/**
* Backwards compatibility shim for previously dynamic properties.
*
* @param string $name The attribute to read.
* @return mixed
*/
public function __get(string $name)
{
if ($name === 'base' || $name === 'webroot') {
return $this->{$name};
}
throw new UnexpectedValueException("Undefined property via __get('{$name}')");
}
/**
* Get the decorated URI
*
* @return \Psr\Http\Message\UriInterface
*/
public function getUri(): UriInterface
{
return $this->uri;
}
/**
* Get the application base path.
*
* @return string
*/
public function getBase(): string
{
return $this->base;
}
/**
* Get the application webroot path.
*
* @return string
*/
public function getWebroot(): string
{
return $this->webroot;
}
/**
* @inheritDoc
*/
public function getScheme()
{
return $this->uri->getScheme();
}
/**
* @inheritDoc
*/
public function getAuthority()
{
return $this->uri->getAuthority();
}
/**
* @inheritDoc
*/
public function getUserInfo()
{
return $this->uri->getUserInfo();
}
/**
* @inheritDoc
*/
public function getHost()
{
return $this->uri->getHost();
}
/**
* @inheritDoc
*/
public function getPort()
{
return $this->uri->getPort();
}
/**
* @inheritDoc
*/
public function getPath()
{
return $this->uri->getPath();
}
/**
* @inheritDoc
*/
public function getQuery()
{
return $this->uri->getQuery();
}
/**
* @inheritDoc
*/
public function getFragment()
{
return $this->uri->getFragment();
}
/**
* @inheritDoc
*/
public function withScheme($scheme)
{
$new = clone $this;
$new->uri = $this->uri->withScheme($scheme);
return $new;
}
/**
* @inheritDoc
*/
public function withUserInfo($user, $password = null)
{
$new = clone $this;
$new->uri = $this->uri->withUserInfo($user, $password);
return $new;
}
/**
* @inheritDoc
*/
public function withHost($host)
{
$new = clone $this;
$new->uri = $this->uri->withHost($host);
return $new;
}
/**
* @inheritDoc
*/
public function withPort($port)
{
$new = clone $this;
$new->uri = $this->uri->withPort($port);
return $new;
}
/**
* @inheritDoc
*/
public function withPath($path)
{
$new = clone $this;
$new->uri = $this->uri->withPath($path);
return $new;
}
/**
* @inheritDoc
*/
public function withQuery($query)
{
$new = clone $this;
$new->uri = $this->uri->withQuery($query);
return $new;
}
/**
* @inheritDoc
*/
public function withFragment($fragment)
{
$new = clone $this;
$new->uri = $this->uri->withFragment($fragment);
return $new;
}
/**
* @inheritDoc
*/
public function __toString()
{
return $this->uri->__toString();
}
}