1 | <?php |
||
20 | class S3ClientStub implements S3ClientInterface |
||
21 | { |
||
22 | use S3ClientTrait; |
||
23 | |||
24 | /** |
||
25 | * @var S3ClientInterface |
||
26 | */ |
||
27 | private $actualClient; |
||
28 | |||
29 | /** |
||
30 | * @var S3Exception[] |
||
31 | */ |
||
32 | private $stagedExceptions = []; |
||
33 | |||
34 | /** |
||
35 | * @var ResultInterface[] |
||
36 | */ |
||
37 | private $stagedResult = []; |
||
38 | |||
39 | public function __construct(S3ClientInterface $client) |
||
43 | |||
44 | public function failOnNextCopy(): void |
||
48 | |||
49 | public function throwExceptionWhenExecutingCommand(string $commandName, S3Exception $exception = null): void |
||
53 | |||
54 | public function throw500ExceptionWhenExecutingCommand(string $commandName): void |
||
61 | |||
62 | public function stageResultForCommand(string $commandName, ResultInterface $result): void |
||
66 | |||
67 | public function execute(CommandInterface $command) |
||
71 | |||
72 | public function getCommand($name, array $args = []) |
||
76 | |||
77 | public function getHandlerList() |
||
81 | |||
82 | public function getIterator($name, array $args = []) |
||
86 | |||
87 | public function __call($name, array $arguments) |
||
91 | |||
92 | public function executeAsync(CommandInterface $command) |
||
111 | |||
112 | public function getCredentials() |
||
116 | |||
117 | public function getRegion() |
||
121 | |||
122 | public function getEndpoint() |
||
126 | |||
127 | public function getApi() |
||
131 | |||
132 | public function getConfig($option = null) |
||
136 | |||
137 | public function getPaginator($name, array $args = []) |
||
141 | |||
142 | public function waitUntil($name, array $args = []) |
||
146 | |||
147 | public function getWaiter($name, array $args = []) |
||
151 | |||
152 | public function createPresignedRequest(CommandInterface $command, $expires, array $options = []) |
||
156 | |||
157 | public function getObjectUrl($bucket, $key) |
||
161 | } |
||
162 |