File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,10 @@ class DispatcherJob implements ShouldQueue
13
13
use Queueable;
14
14
use SerializesModels;
15
15
16
- /**
17
- * @var mixed
18
- */
19
- protected $ data ;
16
+ protected bool $ plain = false ;
20
17
21
- /**
22
- * @var bool
23
- */
24
- protected $ plain = false ;
25
-
26
- /**
27
- * DispatchedJob constructor.
28
- * @param $data
29
- */
30
- public function __construct ($ data )
18
+ public function __construct (protected $ data )
31
19
{
32
- $ this ->data = $ data ;
33
20
}
34
21
35
22
/**
@@ -51,7 +38,7 @@ public function getPayload()
51
38
* @param bool $plain
52
39
* @return $this
53
40
*/
54
- public function setPlain ($ plain = true )
41
+ public function setPlain (bool $ plain = true ): self
55
42
{
56
43
$ this ->plain = $ plain ;
57
44
@@ -61,7 +48,7 @@ public function setPlain($plain = true)
61
48
/**
62
49
* @return bool
63
50
*/
64
- public function isPlain ()
51
+ public function isPlain (): bool
65
52
{
66
53
return $ this ->plain ;
67
54
}
You can’t perform that action at this time.
0 commit comments