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

Public Member Functions

 __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\Job::__construct ( )

Member Function Documentation

◆ getResult()

Procrastinator\Job\Job::getResult ( )

◆ getState()

Procrastinator\Job\Job::getState ( )

◆ getStateProperty()

Procrastinator\Job\Job::getStateProperty ( string  $property,
  $default = null 
)

◆ getTimeLimit()

Procrastinator\Job\Job::getTimeLimit ( )

◆ hydrate()

static Procrastinator\Job\Job::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 in Procrastinator\Job\Method.

◆ jsonSerialize()

Procrastinator\Job\Job::jsonSerialize ( )

◆ run()

Procrastinator\Job\Job::run ( )

◆ runIt()

Procrastinator\Job\Job::runIt ( )
abstractprotected

◆ setStateProperty()

Procrastinator\Job\Job::setStateProperty (   $property,
  $value 
)

◆ setTimeLimit()

Procrastinator\Job\Job::setTimeLimit ( int  $seconds)

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