| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace AsyncAws\Core;
- /**
- * Representation of a AWS Request.
- *
- * @author Jérémy Derussé <jeremy@derusse.com>
- *
- * @internal
- */
- 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;
- }
|