Total Complexity | 6 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class DownloadFileAction extends ActionAbstract |
||
8 | { |
||
9 | protected $path; |
||
10 | |||
11 | protected $name; |
||
12 | |||
13 | protected $headers; |
||
14 | |||
15 | protected $disk; |
||
16 | |||
17 | /** |
||
18 | * Constructor to action. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | public function __construct(string $path, ?string $name = null, array $headers = []) |
||
29 | } |
||
30 | |||
31 | public function name(string $name): static |
||
32 | { |
||
33 | $this->name = $name; |
||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
38 | public function disk(?string $disk): static |
||
43 | } |
||
44 | |||
45 | public function headers(array $headers): static |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Execute Action. |
||
54 | */ |
||
55 | public function run() |
||
58 | } |
||
59 | } |
||
60 |