EPG PHP SDK
Loading...
Searching...
No Matches
Configuration Class Reference

Public Member Functions

 __construct (Credentials $credentials, ParametersInterface $parameters)
 
 getCredentials ()
 Retrieves the Credentials instance.
 
 getParameters ()
 Retrieves the Parameters instance.
 
 getBaseUrl ()
 Retrieves the base URL.
 
 setCredentials (Credentials $credentials)
 Sets the Credentials instance.
 
 setBaseUrl (string $baseUrl)
 Sets the base URL for payment processing.
 
 setParameters (Parameters $parameters)
 Sets the Parameters instance.
 
 setConfig ()
 Sets up the configuration array.
 
 getProduction ()
 Retrieves the production mode status.
 
 getConfig ()
 Retrieves the entire configuration array.
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Credentials  $credentials,
ParametersInterface  $parameters 
)

Member Function Documentation

◆ getBaseUrl()

getBaseUrl ( )

Retrieves the base URL.

Returns
null|string The base URL or null if not set.

◆ getConfig()

getConfig ( )

Retrieves the entire configuration array.

Returns
array The configuration settings.

◆ getCredentials()

getCredentials ( )

Retrieves the Credentials instance.

Returns
Credentials The credentials object.

◆ getParameters()

getParameters ( )

Retrieves the Parameters instance.

Returns
ParametersInterface The parameters interface.

◆ getProduction()

getProduction ( )

Retrieves the production mode status.

Returns
bool True if in production mode, false otherwise.

◆ setBaseUrl()

setBaseUrl ( string  $baseUrl)

Sets the base URL for payment processing.

Parameters
string$baseUrlThe base URL.
Returns
self Returns the instance of the class for method chaining.

◆ setConfig()

setConfig ( )

Sets up the configuration array.

Combines credentials and other parameters into a single configuration array.

◆ setCredentials()

setCredentials ( Credentials  $credentials)

Sets the Credentials instance.

Parameters
Credentials$credentialsThe credentials object.
Returns
self Returns the instance of the class for method chaining.

◆ setParameters()

setParameters ( Parameters  $parameters)

Sets the Parameters instance.

Parameters
Parameters$parametersThe parameters object.
Returns
self Returns the instance of the class for method chaining.

The documentation for this class was generated from the following file: