| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class DownloadFileAction implements ActionInterface |
||
| 8 | { |
||
| 9 | protected $path; |
||
| 10 | |||
| 11 | protected $name; |
||
| 12 | |||
| 13 | protected $headers; |
||
| 14 | |||
| 15 | protected $disk; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor to action. |
||
| 19 | * |
||
| 20 | * @param string $path |
||
| 21 | * @param string|null $name |
||
| 22 | * @param array $headers |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function __construct(string $path, ?string $name = null, array $headers = []) |
||
| 30 | } |
||
| 31 | |||
| 32 | public function disk(?string $disk): self |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Execute Action. |
||
| 41 | */ |
||
| 42 | public function run() |
||
| 47 |