You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Field/FileFormField.php
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ class FileFormField extends FormField
24
24
* @param int $error The error code (one of UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, or UPLOAD_ERR_EXTENSION)
25
25
*
26
26
* @throws \InvalidArgumentException When error code doesn't exist
27
+
*
28
+
* @return void
27
29
*/
28
30
publicfunctionsetErrorCode(int$error)
29
31
{
@@ -37,6 +39,8 @@ public function setErrorCode(int $error)
37
39
38
40
/**
39
41
* Sets the value of the field.
42
+
*
43
+
* @return void
40
44
*/
41
45
publicfunctionupload(?string$value)
42
46
{
@@ -45,6 +49,8 @@ public function upload(?string $value)
45
49
46
50
/**
47
51
* Sets the value of the field.
52
+
*
53
+
* @return void
48
54
*/
49
55
publicfunctionsetValue(?string$value)
50
56
{
@@ -76,6 +82,8 @@ public function setValue(?string $value)
76
82
77
83
/**
78
84
* Sets path to the file as string for simulating HTTP request.
85
+
*
86
+
* @return void
79
87
*/
80
88
publicfunctionsetFilePath(string$path)
81
89
{
@@ -86,6 +94,8 @@ public function setFilePath(string $path)
86
94
* Initializes the form field.
87
95
*
88
96
* @throws \LogicException When node type is incorrect
0 commit comments