Url
in package
Class Url
Table of Contents
- $admin : string
- $base : string
- $host : string
- $path : string
- __construct() : mixed
- Url constructor.
- admin() : string
- Returns the base URL of the admin.
- base() : string
- Returns the base URL of the shop.
- host() : string
- Returns the host URL.
- path() : string
- Returns the path of the currently accessed URL.
- restApiV3() : string
- Returns the base URL of the REST API v3.
Properties
$admin
private
string
$admin
$base
private
string
$base
$host
private
string
$host
$path
private
string
$path
Methods
__construct()
Url constructor.
public
__construct(string $host, string $path) : mixed
Parameters
- $host : string
- $path : string
Return values
mixed —admin()
Returns the base URL of the admin.
public
admin() : string
Return values
string —base()
Returns the base URL of the shop.
public
base() : string
Return values
string —host()
Returns the host URL.
public
host() : string
Return values
string —path()
Returns the path of the currently accessed URL.
public
path() : string
Return values
string —restApiV3()
Returns the base URL of the REST API v3.
public
restApiV3() : string