1 | <?php |
||
23 | class MnsJob extends Job implements JobContract |
||
24 | { |
||
25 | /** |
||
26 | * The class name of the job. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $job; |
||
31 | |||
32 | /** |
||
33 | * The queue message data. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $data; |
||
38 | |||
39 | /** |
||
40 | * @var \LaravelMns\MnsAdapter |
||
41 | */ |
||
42 | private $mns; |
||
43 | |||
44 | /** |
||
45 | * Create a new job instance. |
||
46 | * |
||
47 | * @param \Illuminate\Container\Container $container |
||
48 | * @param \LaravelMns\MnsAdapter $mns |
||
49 | * @param string $queue |
||
50 | * @param \AliyunMNS\Responses\ReceiveMessageResponse $job |
||
51 | */ |
||
52 | 6 | public function __construct( |
|
63 | |||
64 | /** |
||
65 | * Fire the job. |
||
66 | */ |
||
67 | 2 | public function fire() |
|
78 | |||
79 | /** |
||
80 | * Get the raw body string for the job. |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | 2 | public function getRawBody() |
|
88 | |||
89 | /** |
||
90 | * Delete the job from the queue. |
||
91 | */ |
||
92 | 1 | public function delete() |
|
98 | |||
99 | /** |
||
100 | * Release the job back into the queue. |
||
101 | * |
||
102 | * @param int $delay |
||
103 | */ |
||
104 | 1 | public function release($delay = 0) |
|
118 | |||
119 | /** |
||
120 | * Get the number of times the job has been attempted. |
||
121 | * |
||
122 | * @return int |
||
123 | */ |
||
124 | 1 | public function attempts() |
|
128 | |||
129 | /** |
||
130 | * 从现在起到消息变为可消费的秒数。 |
||
131 | * |
||
132 | * @param int $nextVisibleTime 下次可消费时的微妙时间戳。 |
||
133 | * |
||
134 | * @return int |
||
135 | */ |
||
136 | 1 | private function fromNowToNextVisibleTime($nextVisibleTime) |
|
143 | |||
144 | /** |
||
145 | * Get the IoC container instance. |
||
146 | * |
||
147 | * @return \Illuminate\Container\Container |
||
148 | */ |
||
149 | 1 | public function getContainer() |
|
153 | } |
||
154 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..