public function load($dynamodb, array $options = [])
    {
        expect_type($dynamodb, DynamoDbClient::class);
        $this->assertOptions($options);

        $data = $this->loadDataFromItem($dynamodb, $options);

        if (!is_array($data)) {
            throw new LoadException("DynamoDB '{$options['key_value']}' configuration isn't a key/value map");
        }

        return new Config($data);
    }
public function load($dynamodb, array $options = [])
    {
        expect_type($dynamodb, DynamoDbClient::class);
        $this->assertOptions($options);

        $data = $this->loadDataFromItem($dynamodb, $options);

        if (!is_array($data)) {
            throw new LoadException("DynamoDB '{$options['key_value']}' configuration isn't a key/value map");
        }

        return new Config($data);
    }
public function load ( $ dynamodb , array $ options = [ ] ) { expect_type ( $ dynamodb , DynamoDbClient :: class ) ; $ this -> assertOptions ( $ options ) ; $ data = $ this -> loadDataFromItem ( $ dynamodb , $ options ) ; if ( ! is_array ( $ data ) ) { throw new LoadException ( "DynamoDB '{$options['key_value']}' configuration isn't a key/value map" ) ; } return new Config ( $ data ) ; }
Load config from DynamoDB

@param DynamoDbClient $dynamodb  DB connection
@param array          $options
@return Config
Load config from DynamoDB