web/lib/Zend/Service/Amazon/Authentication.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Service_Amazon
    16  * @package    Zend_Service_Amazon
    17  * @subpackage Authentication
    17  * @subpackage Authentication
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @category   Zend
    23  * @category   Zend
    24  * @package    Zend_Service_Amazon
    24  * @package    Zend_Service_Amazon
    25  * @subpackage Authentication
    25  * @subpackage Authentication
    26  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    26  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    28  */
    28  */
    29 abstract class Zend_Service_Amazon_Authentication
    29 abstract class Zend_Service_Amazon_Authentication
    30 {
    30 {
    31     protected $_accessKey;
    31     protected $_accessKey;
    32     protected $_secretKey;
    32     protected $_secretKey;
    33     protected $_apiVersion;
    33     protected $_apiVersion;
    34     
    34 
    35     /**
    35     /**
    36      * Constructor
    36      * Constructor
    37      * 
    37      *
    38      * @param  string $accessKey 
    38      * @param  string $accessKey
    39      * @param  string $secretKey 
    39      * @param  string $secretKey
    40      * @param  string $apiVersion 
    40      * @param  string $apiVersion
    41      * @return void
    41      * @return void
    42      */
    42      */
    43     public function __construct($accessKey, $secretKey, $apiVersion)
    43     public function __construct($accessKey, $secretKey, $apiVersion)
    44     {
    44     {
    45         $this->setAccessKey($accessKey);
    45         $this->setAccessKey($accessKey);
    46         $this->setSecretKey($secretKey);
    46         $this->setSecretKey($secretKey);
    47         $this->setApiVersion($apiVersion);
    47         $this->setApiVersion($apiVersion);
    48     }
    48     }
    49     
    49 
    50     /**
    50     /**
    51      * Set access key
    51      * Set access key
    52      * 
    52      *
    53      * @param  string $accessKey 
    53      * @param  string $accessKey
    54      * @return void
    54      * @return void
    55      */
    55      */
    56     public function setAccessKey($accessKey) 
    56     public function setAccessKey($accessKey)
    57     {
    57     {
    58         $this->_accessKey = $accessKey;
    58         $this->_accessKey = $accessKey;
    59     }
    59     }
    60     
    60 
    61     /**
    61     /**
    62      * Set secret key
    62      * Set secret key
    63      * 
    63      *
    64      * @param  string $secretKey 
    64      * @param  string $secretKey
    65      * @return void
    65      * @return void
    66      */
    66      */
    67     public function setSecretKey($secretKey) 
    67     public function setSecretKey($secretKey)
    68     {
    68     {
    69         $this->_secretKey = $secretKey;
    69         $this->_secretKey = $secretKey;
    70     }
    70     }
    71     
    71 
    72     /**
    72     /**
    73      * Set API version
    73      * Set API version
    74      * 
    74      *
    75      * @param  string $apiVersion 
    75      * @param  string $apiVersion
    76      * @return void
    76      * @return void
    77      */
    77      */
    78     public function setApiVersion($apiVersion) 
    78     public function setApiVersion($apiVersion)
    79     {
    79     {
    80         $this->_apiVersion = $apiVersion;
    80         $this->_apiVersion = $apiVersion;
    81     }
    81     }
    82 }
    82 }