1 | <?php |
||
11 | trait Validations |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $error; |
||
17 | |||
18 | /** |
||
19 | * @return int |
||
20 | */ |
||
21 | 3 | public function getError() |
|
25 | |||
26 | /** |
||
27 | * @param int $error |
||
28 | * @return self |
||
29 | */ |
||
30 | 3 | public function setError($error) |
|
35 | |||
36 | /** |
||
37 | * @param string $ext |
||
38 | * @param array $list |
||
39 | * @return bool |
||
40 | */ |
||
41 | 4 | private function extensionIsValid($ext, array $list) |
|
49 | |||
50 | /** |
||
51 | * @return bool |
||
52 | */ |
||
53 | 3 | private function uploadWithError() |
|
57 | } |
||
58 |