File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -380,9 +380,9 @@ public function toArray()
380
380
{
381
381
return [
382
382
'id ' => $ this ->id ,
383
+ 'name ' => $ this ->name ,
383
384
'totalJobs ' => $ this ->totalJobs ,
384
385
'pendingJobs ' => $ this ->pendingJobs ,
385
- 'name ' => $ this ->name ,
386
386
'processedJobs ' => $ this ->processedJobs (),
387
387
'progress ' => $ this ->progress (),
388
388
'failedJobs ' => $ this ->failedJobs ,
Original file line number Diff line number Diff line change 11
11
12
12
class PendingBatch
13
13
{
14
+ /**
15
+ * The batch name.
16
+ *
17
+ * @var string
18
+ */
19
+ public $ name = '' ;
20
+
14
21
/**
15
22
* The jobs that belong to the batch.
16
23
*
@@ -25,13 +32,6 @@ class PendingBatch
25
32
*/
26
33
public $ options = [];
27
34
28
- /**
29
- * The batch name.
30
- *
31
- * @var string
32
- */
33
- public $ name = '' ;
34
-
35
35
/**
36
36
* Create a new pending batch instance.
37
37
*
@@ -138,12 +138,12 @@ public function allowsFailures()
138
138
}
139
139
140
140
/**
141
- * Add a name for the batch.
141
+ * Set the name for the batch.
142
142
*
143
143
* @param string $name
144
144
* @return $this
145
145
*/
146
- public function name ($ name )
146
+ public function name (string $ name )
147
147
{
148
148
$ this ->name = $ name ;
149
149
You can’t perform that action at this time.
0 commit comments