interface IOptionsAbstract (View source)

This interface defines the abstract options for database connections.

Methods

getInstance()

Get the database connection instance

void
set(string $name, mixed $value)

Set an option value using dynamic method call

mixed
get(string $name)

Get an option value using dynamic method call

mixed
getOptions(int|null $type = null)

Get all options or a specific option type defined by user

Details

IConnection getInstance()

Get the database connection instance

Return Value

IConnection

The current database connection instance

void set(string $name, mixed $value)

Set an option value using dynamic method call

Parameters

string $name

The name of the option to set

mixed $value

The value to set

Return Value

void

mixed get(string $name)

Get an option value using dynamic method call

Parameters

string $name

The name of the option to get

Return Value

mixed

The value of the requested option

mixed getOptions(int|null $type = null)

Get all options or a specific option type defined by user

Parameters

int|null $type

Optional type of options to retrieve

Return Value

mixed

All options or specific type options if type parameter provided