class ArgumentsHandler extends AbstractArguments implements IArguments (View source)

Properties

static protected IConnection $instance from  AbstractArguments
static protected IOptions $optionsHandler from  AbstractArguments
static protected IArgumentsStrategy $argumentsStrategy from  AbstractArguments

Methods

__construct(IConnection $instance, IOptions $optionsHandler, IArgumentsStrategy $argumentsStrategy)

Constructor for AbstractArguments.

static IConnection
getInstance()

Get the connection instance.

static IOptions
getOptionsHandler()

Get the options handler instance.

getArgumentsStrategy()

Get the arguments strategy instance.

static string|int|bool
setType(mixed $value)

Determines the type that will receive treatment

static array
setConstant(array $value)

Transform variables in constants

static IConnection
callArgumentsByFormat(string $format, mixed $arguments)

Determines arguments type by calling to format type

static IConnection
callWithByStaticArgs(array $arguments)

This method is used when all parameters are used in the static arguments format

IConnection|string|int|bool|array|null
call(string $name, array $arguments)

Triggered when invoking inaccessible methods in an object context

static IConnection|string|int|bool|array|null
callStatic(string $name, array $arguments)

This method works like a factory and is responsible for identifying the way in which the class is instantiated, as well as its arguments.

IConnection|string|int|bool|array|null
__call(string $name, array $arguments)

Triggered when invoking inaccessible methods in an object context

static IConnection|string|int|bool|array|null
__callStatic(string $name, array $arguments)

This method works like a factory and is responsible for identifying the way in which the class is instantiated, as well as its arguments.

Details

__construct(IConnection $instance, IOptions $optionsHandler, IArgumentsStrategy $argumentsStrategy)

Constructor for AbstractArguments.

Parameters

IConnection $instance

The connection instance to use

IOptions $optionsHandler

The options handler instance to use

IArgumentsStrategy $argumentsStrategy

The arguments strategy instance to use

static IConnection getInstance()

Get the connection instance.

Return Value

IConnection

The connection instance.

static IOptions getOptionsHandler()

Get the options handler instance.

Return Value

IOptions

The option's handler.

static IArgumentsStrategy getArgumentsStrategy()

Get the arguments strategy instance.

Return Value

IArgumentsStrategy

The argument's strategy.

static string|int|bool setType(mixed $value)

Determines the type that will receive treatment

Parameters

mixed $value

The value to set the argument type to.

Return Value

string|int|bool

The set argument type.

static array setConstant(array $value)

Transform variables in constants

Parameters

array $value

Return Value

array

static IConnection callArgumentsByFormat(string $format, mixed $arguments)

Determines arguments type by calling to format type

Parameters

string $format

The format to call the arguments by.

mixed $arguments

The arguments to call.

Return Value

IConnection

The connection instance.

static IConnection callWithByStaticArgs(array $arguments)

This method is used when all parameters are used in the static arguments format

Parameters

array $arguments

The arguments to call with.

Return Value

IConnection

The connection instance.

IConnection|string|int|bool|array|null call(string $name, array $arguments)

Triggered when invoking inaccessible methods in an object context

Parameters

string $name

The name to call with.

array $arguments

The arguments to call with.

Return Value

IConnection|string|int|bool|array|null

The result of the call.

static IConnection|string|int|bool|array|null callStatic(string $name, array $arguments)

This method works like a factory and is responsible for identifying the way in which the class is instantiated, as well as its arguments.

Parameters

string $name

The name to call statically with.

array $arguments

The arguments to call statically with.

Return Value

IConnection|string|int|bool|array|null

The result of the static call.

IConnection|string|int|bool|array|null __call(string $name, array $arguments)

Triggered when invoking inaccessible methods in an object context

Parameters

string $name

Name of the method

array $arguments

Array of arguments

Return Value

IConnection|string|int|bool|array|null

static IConnection|string|int|bool|array|null __callStatic(string $name, array $arguments)

This method works like a factory and is responsible for identifying the way in which the class is instantiated, as well as its arguments.

Parameters

string $name

Name of the static method

array $arguments

Array of arguments

Return Value

IConnection|string|int|bool|array|null