class ArgumentsStrategy implements IArgumentsStrategy (View source)

Class ArgumentsStrategy Implements the IArgumentsStrategy interface to provide methods for obtaining instances and options handlers.

Methods

getInstance()

Retrieves an instance of IConnection.

getOptionsHandler()

Retrieves the options handler.

array
setConstant(array $value)

Sets the constant options for the Firebird connection.

Details

IConnection getInstance()

Retrieves an instance of IConnection.

This method returns an instance of IConnection by calling the getInstance method of the ArgumentsHandler class.

Return Value

IConnection

An instance of IConnection.

IOptions getOptionsHandler()

Retrieves the options handler.

This method returns an instance of IOptions by calling the static method getOptionsHandler() from the ArgumentsHandler class.

Return Value

IOptions

The options handler instance.

array setConstant(array $value)

Sets the constant options for the Firebird connection.

This method uses the Generators::setConstant function to set the constant options for the Firebird connection. It then updates the options handler with the new options and returns the updated options.

Parameters

array $value

The constant value to set.

Return Value

array

The updated argument's strategy.