ShopDetails
in package
Class ShopDetails
Table of Contents
- $countries : array<string|int, mixed>
- $defaultLanguage : string
- $key : string
- $languages : array<string|int, mixed>
- $url : string
- $version : string
- __construct() : mixed
- ShopDetails constructor.
- countries() : array<string|int, mixed>
- Returns a list of all available countries of the shop.
- create() : ShopDetails
- Creates and returns a new ShopDetails instance.
- defaultLanguage() : string
- Returns the default language of the shop.
- key() : string
- Returns the shop key of the shop.
- languages() : array<string|int, mixed>
- Returns a list of all available languages of the shop.
- url() : string
- Returns the URL of the shop.
- version() : string
- Returns the version of the shop.
Properties
$countries
private
array<string|int, mixed>
$countries
$defaultLanguage
private
string
$defaultLanguage
= ''
$key
private
string
$key
$languages
private
array<string|int, mixed>
$languages
$url
private
string
$url
$version
private
string
$version
Methods
__construct()
ShopDetails constructor.
public
__construct(string $version, string $url, string $key, array<string|int, mixed> $languages, string $defaultLanguage, array<string|int, mixed> $countries) : mixed
Parameters
- $version : string
- $url : string
- $key : string
- $languages : array<string|int, mixed>
- $defaultLanguage : string
- $countries : array<string|int, mixed>
Return values
mixed —countries()
Returns a list of all available countries of the shop.
public
countries() : array<string|int, mixed>
Return values
array<string|int, mixed> —create()
Creates and returns a new ShopDetails instance.
public
static create(string $version, string $url, string $key, array<string|int, mixed> $languages, string $defaultLanguage, array<string|int, mixed> $countries) : ShopDetails
Parameters
- $version : string
- $url : string
- $key : string
- $languages : array<string|int, mixed>
- $defaultLanguage : string
- $countries : array<string|int, mixed>
Return values
ShopDetails —defaultLanguage()
Returns the default language of the shop.
public
defaultLanguage() : string
Return values
string —key()
Returns the shop key of the shop.
public
key() : string
Return values
string —languages()
Returns a list of all available languages of the shop.
public
languages() : array<string|int, mixed>
Return values
array<string|int, mixed> —url()
Returns the URL of the shop.
public
url() : string
Return values
string —version()
Returns the version of the shop.
public
version() : string