PluginProbe
Media Cloud Sync / 1.2.13
Media Cloud Sync v1.2.13
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / s3 / Aws / Api / Parser / AbstractParser.php

AbstractParser.php in Media Cloud Sync 1.2.13, at includes/sdk/s3/Aws/Api/Parser/AbstractParser.php

36 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\Aws\Api\Parser;
4
5 use Dudlewebs\WPMCS\s3\Aws\Api\Service;
6 use Dudlewebs\WPMCS\s3\Aws\Api\StructureShape;
7 use Dudlewebs\WPMCS\s3\Aws\CommandInterface;
8 use Dudlewebs\WPMCS\s3\Aws\ResultInterface;
9 use Dudlewebs\WPMCS\s3\Psr\Http\Message\ResponseInterface;
10 use Dudlewebs\WPMCS\s3\Psr\Http\Message\StreamInterface;
11 /**
12 * @internal
13 */
14 abstract class AbstractParser
15 {
16 /** @var \Aws\Api\Service Representation of the service API*/
17 protected $api;
18 /** @var callable */
19 protected $parser;
20 /**
21 * @param Service $api Service description.
22 */
23 public function __construct(Service $api)
24 {
25 $this->api = $api;
26 }
27 /**
28 * @param CommandInterface $command Command that was executed.
29 * @param ResponseInterface $response Response that was received.
30 *
31 * @return ResultInterface
32 */
33 public abstract function __invoke(CommandInterface $command, ResponseInterface $response);
34 public abstract function parseMemberFromStream(StreamInterface $stream, StructureShape $member, $response);
35 }
36