1 | <?php |
||
17 | class S3ClientStub implements S3ClientInterface |
||
18 | { |
||
19 | use S3ClientTrait; |
||
20 | |||
21 | /** |
||
22 | * @var S3ClientInterface |
||
23 | */ |
||
24 | private $actualClient; |
||
25 | |||
26 | /** |
||
27 | * @var S3Exception[] |
||
28 | */ |
||
29 | private $stagedExceptions = []; |
||
30 | |||
31 | public function __construct(S3ClientInterface $client) |
||
35 | |||
36 | public function failOnNextCopy(): void |
||
40 | |||
41 | public function throwExceptionWhenExecutingCommand(string $commandName, S3Exception $exception = null): void |
||
45 | |||
46 | public function throw500ExceptionWhenExecutingCommand(string $commandName): void |
||
53 | |||
54 | public function execute(CommandInterface $command) |
||
58 | |||
59 | public function getCommand($name, array $args = []) |
||
63 | |||
64 | public function getHandlerList() |
||
68 | |||
69 | public function getIterator($name, array $args = []) |
||
73 | |||
74 | public function __call($name, array $arguments) |
||
78 | |||
79 | public function executeAsync(CommandInterface $command) |
||
89 | |||
90 | public function getCredentials() |
||
94 | |||
95 | public function getRegion() |
||
99 | |||
100 | public function getEndpoint() |
||
104 | |||
105 | public function getApi() |
||
109 | |||
110 | public function getConfig($option = null) |
||
114 | |||
115 | public function getPaginator($name, array $args = []) |
||
119 | |||
120 | public function waitUntil($name, array $args = []) |
||
124 | |||
125 | public function getWaiter($name, array $args = []) |
||
129 | |||
130 | public function createPresignedRequest(CommandInterface $command, $expires, array $options = []) |
||
134 | |||
135 | public function getObjectUrl($bucket, $key) |
||
139 | } |
||
140 |