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: src/Exceptions/TooManyRowsException.php
+14-29Lines changed: 14 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -9,30 +9,23 @@
9
9
10
10
namespaceJavaabu\Imports\Exceptions;
11
11
12
+
useIlluminate\Http\Response;
12
13
useIlluminate\Http\JsonResponse;
14
+
useIlluminate\Http\RedirectResponse;
13
15
useJavaabu\Helpers\Exceptions\AppException;
14
16
15
17
class TooManyRowsException extends AppException
16
18
{
17
-
/**
18
-
* @var int
19
-
*/
20
-
protected$count;
19
+
protectedint$count;
21
20
22
-
/**
23
-
* @var string
24
-
*/
25
-
protected$file_name;
21
+
protected ?string$file_name;
26
22
27
-
/**
28
-
* Constructor
29
-
*
30
-
* @param string $file_name
31
-
* @param string $message
32
-
* @param string $name
33
-
*/
34
-
publicfunction__construct(int$count, $file_name = '', $message = 'The import file contains too many rows to import in one go. The data would be imported in the background and you would be notified via email once the data is imported.', $name = 'TooManyRows')
35
-
{
23
+
publicfunction__construct(
24
+
int$count,
25
+
?string$file_name = '',
26
+
?string$message = 'The import file contains too many rows to import in one go. The data would be imported in the background and you would be notified via email once the data is imported.',
27
+
?string$name = 'TooManyRows'
28
+
) {
36
29
parent::__construct(422, $name, $message);
37
30
38
31
$this->count = $count;
@@ -41,30 +34,24 @@ public function __construct(int $count, $file_name = '', $message = 'The import
0 commit comments