File indexing completed on 2025-01-26 05:25:26

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Service_Amazon
0017  * @subpackage Authentication
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  */
0021 
0022 /**
0023  * @category   Zend
0024  * @package    Zend_Service_Amazon
0025  * @subpackage Authentication
0026  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0027  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0028  */
0029 abstract class Zend_Service_Amazon_Authentication
0030 {
0031     protected $_accessKey;
0032     protected $_secretKey;
0033     protected $_apiVersion;
0034 
0035     /**
0036      * Constructor
0037      *
0038      * @param  string $accessKey
0039      * @param  string $secretKey
0040      * @param  string $apiVersion
0041      * @return void
0042      */
0043     public function __construct($accessKey, $secretKey, $apiVersion)
0044     {
0045         $this->setAccessKey($accessKey);
0046         $this->setSecretKey($secretKey);
0047         $this->setApiVersion($apiVersion);
0048     }
0049 
0050     /**
0051      * Set access key
0052      *
0053      * @param  string $accessKey
0054      * @return void
0055      */
0056     public function setAccessKey($accessKey)
0057     {
0058         $this->_accessKey = $accessKey;
0059     }
0060 
0061     /**
0062      * Set secret key
0063      *
0064      * @param  string $secretKey
0065      * @return void
0066      */
0067     public function setSecretKey($secretKey)
0068     {
0069         $this->_secretKey = $secretKey;
0070     }
0071 
0072     /**
0073      * Set API version
0074      *
0075      * @param  string $apiVersion
0076      * @return void
0077      */
0078     public function setApiVersion($apiVersion)
0079     {
0080         $this->_apiVersion = $apiVersion;
0081     }
0082 }