Total Complexity | 7 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class File |
||
8 | { |
||
9 | private array $file; |
||
10 | |||
11 | public function __construct() |
||
12 | { |
||
13 | $this->file = $_FILES; |
||
14 | } |
||
15 | |||
16 | public function get(string $key): array |
||
17 | { |
||
18 | return $this->file[$key]; |
||
19 | } |
||
20 | |||
21 | public function all(): array |
||
22 | { |
||
23 | return $this->file; |
||
24 | } |
||
25 | |||
26 | public function except(array $keys): array |
||
27 | { |
||
28 | return ArrayUtil::except($this->file, $keys); |
||
29 | } |
||
30 | |||
31 | public function only(array $keys): array |
||
32 | { |
||
33 | return ArrayUtil::only($this->file, $keys); |
||
34 | } |
||
35 | |||
36 | public function has(string $key): bool |
||
39 | } |
||
40 | |||
41 | public function remove(string $key): File |
||
42 | { |
||
48 | } |
||
49 | } |