diff --git a/src/Task.php b/src/Task.php index 9043a2a..708426c 100644 --- a/src/Task.php +++ b/src/Task.php @@ -123,6 +123,26 @@ public function push_to_queue( $data ) { return $this; } + /** + * Set the data for queue. + * + * Use this only if you have the data in correct format. + * CAUTION: You should call Task::save() right after this + * because this will replace the data in current queue. + * + * @param mixed $data Data to process. + * + * @since 1.0.2 + * @access public + * + * @return Task $this + */ + public function set_queue( $data ) { + $this->data = $data; + + return $this; + } + /** * Save the process queue. *