| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | * @param array $extensions |
||
| 20 | * @param bool $monthYearPath |
||
| 21 | * https://www.freeformatter.com/mime-types-list.html |
||
| 22 | */ |
||
| 23 | public function __construct( |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param array $file |
||
| 37 | * @param string $name |
||
| 38 | * @return string |
||
| 39 | * @throws \Exception |
||
| 40 | */ |
||
| 41 | public function upload(array $file, string $name): string |
||
| 52 | } |
||
| 53 | } |