|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Service_Amazon |
|
17 * @subpackage Authentication |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 */ |
|
21 |
|
22 /** |
|
23 * @category Zend |
|
24 * @package Zend_Service_Amazon |
|
25 * @subpackage Authentication |
|
26 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
27 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
28 */ |
|
29 abstract class Zend_Service_Amazon_Authentication |
|
30 { |
|
31 protected $_accessKey; |
|
32 protected $_secretKey; |
|
33 protected $_apiVersion; |
|
34 |
|
35 /** |
|
36 * Constructor |
|
37 * |
|
38 * @param string $accessKey |
|
39 * @param string $secretKey |
|
40 * @param string $apiVersion |
|
41 * @return void |
|
42 */ |
|
43 public function __construct($accessKey, $secretKey, $apiVersion) |
|
44 { |
|
45 $this->setAccessKey($accessKey); |
|
46 $this->setSecretKey($secretKey); |
|
47 $this->setApiVersion($apiVersion); |
|
48 } |
|
49 |
|
50 /** |
|
51 * Set access key |
|
52 * |
|
53 * @param string $accessKey |
|
54 * @return void |
|
55 */ |
|
56 public function setAccessKey($accessKey) |
|
57 { |
|
58 $this->_accessKey = $accessKey; |
|
59 } |
|
60 |
|
61 /** |
|
62 * Set secret key |
|
63 * |
|
64 * @param string $secretKey |
|
65 * @return void |
|
66 */ |
|
67 public function setSecretKey($secretKey) |
|
68 { |
|
69 $this->_secretKey = $secretKey; |
|
70 } |
|
71 |
|
72 /** |
|
73 * Set API version |
|
74 * |
|
75 * @param string $apiVersion |
|
76 * @return void |
|
77 */ |
|
78 public function setApiVersion($apiVersion) |
|
79 { |
|
80 $this->_apiVersion = $apiVersion; |
|
81 } |
|
82 } |