File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Интерфейс загруженного файла.
4+ * @package evas-php\evas-http
5+ * @author Egor Vasyakin <[email protected] > 6+ */
7+ namespace Evas \Http \Interfaces ;
8+
9+ interface UploadedFileInterface
10+ {
11+ /**
12+ * Перемещение загруженного файла.
13+ * @param string новый путь
14+ */
15+ public function move (string $ to );
16+
17+ /**
18+ * Получение размера файла.
19+ * @return int
20+ */
21+ public function getSize (): int ;
22+
23+ /**
24+ * Получение ошибки файла.
25+ * @return string|null
26+ */
27+ public function getError (): ?string ;
28+
29+ /**
30+ * Получение клиентского имени файла.
31+ * @return string|null
32+ */
33+ public function getName (): ?string ;
34+
35+ /**
36+ * Получение расширения клиентского имени файла.
37+ * @return string|null
38+ */
39+ public function getExtension (): ?string ;
40+
41+ /**
42+ * Получение клиентского типа файла.
43+ * @return string|null
44+ */
45+ public function getMediaType (): ?string ;
46+ }
You can’t perform that action at this time.
0 commit comments