Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/*
3
 * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
 *
5
 * Licensed under the Apache License, Version 2.0 (the "License").
6
 * You may not use this file except in compliance with the License.
7
 * A copy of the License is located at
8
 *
9
 *  http://aws.amazon.com/apache2.0
10
 *
11
 * or in the "license" file accompanying this file. This file is distributed
12
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
 * express or implied. See the License for the specific language governing
14
 * permissions and limitations under the License.
15
 */
16
 
17
 
18
/*%******************************************************************************************%*/
19
// CLASS
20
 
21
/**
22
 * The abstract class that serves as the base class that signer classes extend.
23
 *
24
 * @version 2011.11.22
25
 * @license See the included NOTICE.md file for more information.
26
 * @copyright See the included NOTICE.md file for more information.
27
 * @link http://aws.amazon.com/php/ PHP Developer Center
28
 */
29
abstract class Signer
30
{
31
	/**
32
	 * The endpoint to direct the request to.
33
	 */
34
	public $endpoint;
35
 
36
	/**
37
	 * The operation to execute as a result of this request.
38
	 */
39
	public $operation;
40
 
41
	/**
42
	 * The options to use as part of the payload in the request.
43
	 */
44
	public $payload;
45
 
46
	/**
47
	 * The credentials to use for signing and making requests.
48
	 */
49
	public $credentials;
50
 
51
 
52
	/**
53
	 * Constructs a new instance of the implementing class.
54
	 *
55
	 * @param string $endpoint (Required) The endpoint to direct the request to.
56
	 * @param string $operation (Required) The operation to execute as a result of this request.
57
	 * @param array $payload (Required) The options to use as part of the payload in the request.
58
	 * @param CFCredential $credentials (Required) The credentials to use for signing and making requests.
59
	 * @return void
60
	 */
61
	public function __construct($endpoint, $operation, $payload, CFCredential $credentials)
62
	{
63
		$this->endpoint = $endpoint;
64
		$this->operation = $operation;
65
		$this->payload = $payload;
66
		$this->credentials = $credentials;
67
	}
68
}