procrastinator
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Procrastinator\Job\Method Class Reference
Inheritance diagram for Procrastinator\Job\Method:
Procrastinator\Job\Job

Public Member Functions

 __construct ($object, $methodName)
 
- Public Member Functions inherited from Procrastinator\Job\Job
 __construct ()
 
 run ()
 
 setTimeLimit (int $seconds)
 
 getTimeLimit ()
 
 getState ()
 
 getStateProperty (string $property, $default=null)
 
 getResult ()
 
 setStateProperty ($property, $value)
 
 jsonSerialize ()
 

Static Public Member Functions

static hydrate ($json)
 

Protected Member Functions

 runIt ()
 

Constructor & Destructor Documentation

◆ __construct()

Procrastinator\Job\Method::__construct (   $object,
  $methodName 
)

Member Function Documentation

◆ hydrate()

static Procrastinator\Job\Method::hydrate (   $json)
static

Hydrate an object from the json created by jsonSerialize(). You will want to override this method when implementing specific jobs. You can use this function for the initial JSON decoding by calling parent::hydrate() in your implementation.

Parameters
string$jsonJSON string used to hydrate a new instance of the class.

Reimplemented from Procrastinator\Job\Job.

◆ runIt()

Procrastinator\Job\Method::runIt ( )
protected

Reimplemented from Procrastinator\Job\Job.


The documentation for this class was generated from the following file: