Skip to content

Commit cc9bf73

Browse files
addOption setter method added.
1 parent 62a73b2 commit cc9bf73

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Illuminate/Bus/PendingBatch.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,20 @@ public function onQueue(string $queue)
215215

216216
return $this;
217217
}
218+
219+
/**
220+
* Specify additional option.
221+
*
222+
* @param string $key
223+
* @param mixed $value
224+
* @return $this
225+
*/
226+
public function addOption(string $key, $value)
227+
{
228+
$this->options[$key] = $value;
229+
230+
return $this;
231+
}
218232

219233
/**
220234
* Get the queue used by the pending batch.

0 commit comments

Comments
 (0)