PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / vendor / aws / aws-sdk-php / src / Api / Parser / AbstractParser.php
transferito / vendor / aws / aws-sdk-php / src / Api / Parser Last commit date
Exception 11 months ago AbstractParser.php 11 months ago AbstractRestParser.php 11 months ago Crc32ValidatingParser.php 11 months ago DecodingEventStreamIterator.php 11 months ago EventParsingIterator.php 11 months ago JsonParser.php 11 months ago JsonRpcParser.php 11 months ago MetadataParserTrait.php 11 months ago PayloadParserTrait.php 11 months ago QueryParser.php 11 months ago RestJsonParser.php 11 months ago RestXmlParser.php 11 months ago XmlParser.php 11 months ago
AbstractParser.php
47 lines
1 <?php
2 namespace Aws\Api\Parser;
3
4 use Aws\Api\Service;
5 use Aws\Api\StructureShape;
6 use Aws\CommandInterface;
7 use Aws\ResultInterface;
8 use Psr\Http\Message\ResponseInterface;
9 use Psr\Http\Message\StreamInterface;
10
11 /**
12 * @internal
13 */
14 abstract class AbstractParser
15 {
16 /** @var \Aws\Api\Service Representation of the service API*/
17 protected $api;
18
19 /** @var callable */
20 protected $parser;
21
22 /**
23 * @param Service $api Service description.
24 */
25 public function __construct(Service $api)
26 {
27 $this->api = $api;
28 }
29
30 /**
31 * @param CommandInterface $command Command that was executed.
32 * @param ResponseInterface $response Response that was received.
33 *
34 * @return ResultInterface
35 */
36 abstract public function __invoke(
37 CommandInterface $command,
38 ResponseInterface $response
39 );
40
41 abstract public function parseMemberFromStream(
42 StreamInterface $stream,
43 StructureShape $member,
44 $response
45 );
46 }
47