NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface LockingStrategyFactoryInterface

Interface for locking strategy factories. Useful for those who are creating their own locking strategies.

Namespace: Aws\DynamoDb\Session\LockingStrategy
Located at Aws/DynamoDb/Session/LockingStrategy/LockingStrategyFactoryInterface.php

## Methods summary

- `public` `factory ( string $lockingStrategy, Aws\DynamoDb\Session\SessionHandlerConfig $config )`

  Creates a session handler locking strategy object

## Methods detail

# `public `Aws\DynamoDb\Session\LockingStrategy\LockingStrategyInterface``
`factory( string $lockingStrategy, `Aws\DynamoDb\Session\SessionHandlerConfig` $config )`

Creates a session handler locking strategy object

#### Parameters

$lockingStrategy
  `string`
  $lockingStrategy The name of the locking strategy
$config
  ``Aws\DynamoDb\Session\SessionHandlerConfig``
  $config The session handler config data

#### Returns

``Aws\DynamoDb\Session\LockingStrategy\LockingStrategyInterface``

### Magic methods summary