PHP Класс Predis\Connection\Factory

Автор: Daniele Alessandri ([email protected])
Наследование: implements Predis\Connection\FactoryInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$schemes

Открытые методы

Метод Описание
aggregate ( Predis\Connection\AggregateConnectionInterface $connection, array $parameters )
create ( $parameters )
define ( $scheme, $initializer )
getDefaultParameters ( ) : array Returns the default set of parameters applied to new connections.
setDefaultParameters ( array $parameters ) Assigns a default set of parameters applied to new connections.
undefine ( $scheme )

Защищенные методы

Метод Описание
checkInitializer ( mixed $initializer ) : mixed Checks if the provided argument represents a valid connection class implementing Predis\Connection\NodeConnectionInterface. Optionally, callable objects are used for lazy initialization of connection objects.
createParameters ( mixed $parameters ) : Predis\Connection\ParametersInterface Creates a connection parameters instance from the supplied argument.
prepareConnection ( Predis\Connection\NodeConnectionInterface $connection ) Prepares a connection instance after its initialization.

Описание методов

aggregate() публичный метод

public aggregate ( Predis\Connection\AggregateConnectionInterface $connection, array $parameters )
$connection Predis\Connection\AggregateConnectionInterface
$parameters array

checkInitializer() защищенный метод

Checks if the provided argument represents a valid connection class implementing Predis\Connection\NodeConnectionInterface. Optionally, callable objects are used for lazy initialization of connection objects.
protected checkInitializer ( mixed $initializer ) : mixed
$initializer mixed FQN of a connection class or a callable for lazy initialization.
Результат mixed

create() публичный метод

public create ( $parameters )

createParameters() защищенный метод

Creates a connection parameters instance from the supplied argument.
protected createParameters ( mixed $parameters ) : Predis\Connection\ParametersInterface
$parameters mixed Original connection parameters.
Результат Predis\Connection\ParametersInterface

define() публичный метод

public define ( $scheme, $initializer )

getDefaultParameters() публичный метод

Returns the default set of parameters applied to new connections.
public getDefaultParameters ( ) : array
Результат array

prepareConnection() защищенный метод

Prepares a connection instance after its initialization.
protected prepareConnection ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface Connection instance.

setDefaultParameters() публичный метод

The set of parameters passed to create a new connection have precedence over the default values set for the connection factory.
public setDefaultParameters ( array $parameters )
$parameters array Set of connection parameters.

undefine() публичный метод

public undefine ( $scheme )

Описание свойств

$schemes защищенное свойство

protected $schemes