Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class Send extends Uploader |
||
12 | { |
||
13 | /** |
||
14 | * Send constructor. |
||
15 | * |
||
16 | * @param string $uploadDir |
||
17 | * @param string $fileTypeDir |
||
18 | * @param array $allowTypes |
||
19 | */ |
||
20 | public function __construct(string $uploadDir, string $fileTypeDir, array $allowTypes) |
||
21 | { |
||
22 | parent::__construct($uploadDir, $fileTypeDir); |
||
23 | self::$allowTypes = $allowTypes; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param array $file |
||
28 | * @param string $name |
||
29 | * @return string |
||
30 | * @throws \Exception |
||
31 | */ |
||
32 | public function upload(array $file, string $name): string |
||
43 | } |
||
44 | } |