Total Complexity | 6 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class CommandBuilder implements interfaces\CommandBuilder |
||
13 | { |
||
14 | /** @var string default bucket name */ |
||
15 | protected $bucket; |
||
16 | |||
17 | /** @var string default acl */ |
||
18 | protected $acl; |
||
19 | |||
20 | /** @var interfaces\Bus */ |
||
21 | protected $bus; |
||
22 | |||
23 | /** |
||
24 | * CommandBuilder constructor. |
||
25 | * |
||
26 | * @param \diecoding\aws\s3\interfaces\Bus $bus |
||
27 | * @param string $bucket |
||
28 | * @param string $acl |
||
29 | */ |
||
30 | public function __construct(interfaces\Bus $bus, string $bucket = '', string $acl = '') |
||
31 | { |
||
32 | $this->bus = $bus; |
||
33 | $this->bucket = $bucket; |
||
34 | $this->acl = $acl; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param string $className |
||
39 | * |
||
40 | * @return \diecoding\aws\s3\interfaces\commands\Command |
||
41 | * @throws \yii\base\InvalidConfigException |
||
42 | */ |
||
43 | public function build(string $className): interfaces\commands\Command |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param \diecoding\aws\s3\interfaces\commands\Command $command |
||
57 | */ |
||
58 | protected function prepareCommand(interfaces\commands\Command $command) |
||
66 | } |
||
67 | } |
||
69 |