Documentation

UriInfo
in package

FinalYes

since version 7.0.0

Tags
codeCoverageIgnore
see
BaseUri

Table of Contents

Methods

getOrigin()  : string|null
Returns the URI origin property as defined by WHATWG URL living standard.
isAbsolute()  : bool
Tells whether the URI represents an absolute URI.
isAbsolutePath()  : bool
Tells whether the URI represents an absolute path.
isCrossOrigin()  : bool
Tells whether two URI do not share the same origin.
isNetworkPath()  : bool
Tell whether the URI represents a network path.
isRelativePath()  : bool
Tell whether the URI represents a relative path.
isSameDocument()  : bool
Tells whether both URI refers to the same document.
__construct()  : mixed

Methods

getOrigin()

Returns the URI origin property as defined by WHATWG URL living standard.

public static getOrigin(UriInterface|UriInterface $uri) : string|null

use League\Uri\BaseUri::origin() instead

https://url.spec.whatwg.org/#origin

For URI without a special scheme the method returns null For URI with the file scheme the method will return null (as this is left to the implementation decision) For URI with a special scheme the method returns the scheme followed by its authority (without the userinfo part)

Parameters
$uri : UriInterface|UriInterface
Return values
string|null

__construct()

private __construct() : mixed
Tags
codeCoverageIgnore

        
On this page

Search results