Skip to content

Commit

Permalink
Client Wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertwietses committed Feb 4, 2015
1 parent 2df2ce6 commit c78dc4b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/nbproject/private/
25 changes: 25 additions & 0 deletions DynamoDbClientWrapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php namespace EgbertWietses\DynamoDbWrapper;

use Aws\DynamoDb\DynamoDbClient;

/**
* Class DynamoDbClientWrapper
*/
class DynamoDbClientWrapper {

private $client;

/**
* @param $region
* @param $key
* @param $secret
*/
public function __construct($region, $key, $secret)
{
$this->client = DynamoDbClient::factory(array(
'region' => $region,
'key' => $key,
'secret' => $secret
));
}
}
7 changes: 7 additions & 0 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include.path=${php.global.include.path}
php.version=PHP_54
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.
9 changes: 9 additions & 0 deletions nbproject/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>dynamodb-wrapper</name>
</data>
</configuration>
</project>

0 comments on commit c78dc4b

Please sign in to comment.