KMP PHP API Reference

AddInterface

Any task needs to at least implement add().

Tags
author

Mark Scherer

license

http://www.opensource.org/licenses/mit-license.php The MIT License

Table of Contents

Methods

add()  : void
Allows adding a task to the queue.

Methods

add()

Allows adding a task to the queue.

public add(string|null $data) : void

Will create one example job in the queue, which later will be executed using run().

Parameters
$data : string|null

Optional data for the task, make sure to "quote multi words"


        
On this page

Search results