PHP Class Cronario\AbstractWorker

Datei anzeigen Open project: cronario/cronario Class Usage Examples

Protected Properties

Property Type Description
$config
$configDefault
$configFile

Public Methods

Method Description
__invoke ( AbstractJob $job ) : ResultException | Exception | null
factory ( $workerClass ) : mixed | self
getClassPath ( ) : string
getConfig ( null $key = null ) : mixed
setConfigDefault ( array $config = [] ) : boolean

Protected Methods

Method Description
doJob ( AbstractJob $job )
invokeCallbacks ( AbstractJob $job )
loadConfig ( ) : array | mixed | string
loadConfigFile ( $path ) : mixed | string

Method Details

__invoke() public method

public __invoke ( AbstractJob $job ) : ResultException | Exception | null
$job AbstractJob
return Cronario\Exception\ResultException | Exception | null

doJob() abstract protected method

abstract protected doJob ( AbstractJob $job )
$job AbstractJob

factory() public static method

public static factory ( $workerClass ) : mixed | self
$workerClass
return mixed | self

getClassPath() public static method

public static getClassPath ( ) : string
return string

getConfig() final public static method

final public static getConfig ( null $key = null ) : mixed
$key null
return mixed

invokeCallbacks() protected method

protected invokeCallbacks ( AbstractJob $job )
$job AbstractJob

loadConfig() protected static method

protected static loadConfig ( ) : array | mixed | string
return array | mixed | string

loadConfigFile() protected static method

protected static loadConfigFile ( $path ) : mixed | string
$path
return mixed | string

setConfigDefault() final public static method

final public static setConfigDefault ( array $config = [] ) : boolean
$config array
return boolean

Property Details

$config protected_oe static_oe property

protected static $config

$configDefault protected_oe static_oe property

protected static $configDefault

$configFile protected_oe static_oe property

protected static $configFile