Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class ExistCommand extends ExecutableCommand implements HasBucket |
||
17 | { |
||
18 | use Options; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $bucket; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $filename; |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getBucket(): string |
||
30 | { |
||
31 | return (string)$this->bucket; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string $name |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function inBucket(string $name) |
||
40 | { |
||
41 | $this->bucket = $name; |
||
42 | |||
43 | return $this; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getFilename(): string |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param string $filename |
||
56 | * |
||
57 | * @return $this |
||
58 | */ |
||
59 | public function byFilename(string $filename) |
||
64 | } |
||
65 | } |
||
66 |