Total Complexity | 2 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait InteractsWithStorage |
||
6 | { |
||
7 | /** |
||
8 | * The disk of where the file to analyze is stored. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected string $disk; |
||
13 | |||
14 | /** |
||
15 | * The path of the file to analyze. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected string $path; |
||
20 | |||
21 | /** |
||
22 | * Set where to store the converted file. |
||
23 | * |
||
24 | * @param string $disk |
||
25 | * |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function disk(string $disk) |
||
29 | { |
||
30 | $this->disk = $disk; |
||
31 | |||
32 | return $this; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Set where to store the converted file. |
||
37 | * |
||
38 | * @param string $path |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | public function path(string $path) |
||
47 | } |
||
48 | } |
||
49 |