-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathInput.php
More file actions
36 lines (30 loc) · 629 Bytes
/
Input.php
File metadata and controls
36 lines (30 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace AsyncAws\Core;
/**
* Representation of a AWS Request.
*
* @author Jérémy Derussé <[email protected]>
*/
abstract class Input
{
/**
* @var string|null
*/
public $region;
/**
* @param array{'@region'?: ?string,...} $input
*/
protected function __construct(array $input)
{
$this->region = $input['@region'] ?? null;
}
public function setRegion(?string $region): void
{
$this->region = $region;
}
public function getRegion(): ?string
{
return $this->region;
}
abstract public function request(): Request;
}