-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.power
More file actions
50 lines (45 loc) · 965 Bytes
/
code.power
File metadata and controls
50 lines (45 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Get the upload field name.
*
* @return string
* @since 5.1.4
*/
public function field(): string;
/**
* Get the defined file type.
*
* @return string
* @since 5.1.4
*/
public function type(): string;
/**
* Get the upload filter mode.
*
* @return string|null
* @since 5.1.4
*/
public function filter(): ?string;
/**
* Get the target filesystem path.
*
* @return string
* @since 5.1.4
*/
public function path(): string;
/**
* Get the allowed file extensions.
*
* @return array<int,string>
* @since 5.1.4
*/
public function formats(): array;
/**
* Export the full type definition as an associative array.
*
* This returns the exact structure used by the constructor,
* ensuring it can be safely stored, serialized, or rebuilt.
*
* @return array The full configuration map.
* @since 5.1.4
*/
public function toArray(): array;