OlcInstance
in package
Table of Contents
Properties
- $registry : array<string, object>
- $request : OlcRequest
Methods
- __construct() : mixed
- customFields() : CustomFieldsApi
- Get the CustomFields instance.
- getRequest() : OlcRequest
- Get the request instance.
- orderDetails() : OrderDetailsApi
- Get the OrderDetailsApi instance.
- orders() : OrdersApi
- Get the OrdersApi instance.
- products() : ProductApi
- Get the ProductApi instance.
- templates() : TemplatesApi
- Get the Templates instance.
- user() : UserApi
- Get the User instance.
- retrieveApiInstance() : mixed
- Retrieve an API instance by class (FQN) from the registry. If not found, create a new instance.
Properties
$registry
protected
array<string, object>
$registry
= []
$request
private
OlcRequest
$request
Methods
__construct()
public
__construct(string $apiKey[, string|null $version = null ][, string|null $endpoint = null ]) : mixed
Parameters
- $apiKey : string
- $version : string|null = null
- $endpoint : string|null = null
customFields()
Get the CustomFields instance.
public
customFields() : CustomFieldsApi
Return values
CustomFieldsApigetRequest()
Get the request instance.
public
getRequest() : OlcRequest
Return values
OlcRequestorderDetails()
Get the OrderDetailsApi instance.
public
orderDetails() : OrderDetailsApi
Return values
OrderDetailsApiorders()
Get the OrdersApi instance.
public
orders() : OrdersApi
Return values
OrdersApiproducts()
Get the ProductApi instance.
public
products() : ProductApi
Return values
ProductApitemplates()
Get the Templates instance.
public
templates() : TemplatesApi
Return values
TemplatesApiuser()
Get the User instance.
public
user() : UserApi
Return values
UserApiretrieveApiInstance()
Retrieve an API instance by class (FQN) from the registry. If not found, create a new instance.
protected
retrieveApiInstance(class-string $className) : mixed
Parameters
- $className : class-string
-
API FQN class name
Return values
mixed —API instance