PHP Class Kraken\Runtime\RuntimeModel

Inheritance: implements Kraken\Runtime\RuntimeModelInterface
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$alias string
$args string[]
$core Kraken\Core\CoreInterface
$eventEmitter Kraken\Event\EventEmitterInterface
$loop Kraken\Loop\LoopExtendedInterface
$loopBackup Kraken\Loop\LoopExtendedInterface
$loopNextState integer
$loopState integer
$manager Kraken\Runtime\RuntimeManagerInterface
$name string
$parent string
$state integer
$supervisor Kraken\Supervision\SupervisorInterface

Public Methods

Method Description
__construct ( string $parent, string $alias, string $name, string[] $args = [] )
__destruct ( )
create ( )
destroy ( )
fail ( $ex, $params = [] )
getAlias ( )
getArgs ( )
getCore ( )
getEventEmitter ( )
getHash ( )
getLoop ( )
getName ( )
getParent ( )
getRuntimeManager ( )
getState ( )
getSupervisor ( )
getType ( )
isCreated ( )
isDestroyed ( )
isFailed ( )
isStarted ( )
isState ( $state )
isStopped ( )
setCore ( Kraken\Core\CoreInterface $core = null )
setEventEmitter ( Kraken\Event\EventEmitterInterface $emitter = null )
setLoop ( Kraken\Loop\LoopExtendedInterface $loop = null )
setRuntimeManager ( Kraken\Runtime\RuntimeManagerInterface $manager = null )
setState ( $state )
setSupervisor ( Kraken\Supervision\SupervisorInterface $supervisor = null )
start ( )
state ( )
stop ( )
succeed ( )
supervisor ( )

Protected Methods

Method Description
getLoopState ( ) : integer
isLoopState ( integer $state ) : boolean
setLoopState ( integer $state )
startLoop ( )
stopLoop ( )

Private Methods

Method Description
reflect ( mixed $object, mixed[] $params = [] ) : mixed

Method Details

__construct() public method

public __construct ( string $parent, string $alias, string $name, string[] $args = [] )
$parent string
$alias string
$name string
$args string[]

__destruct() public method

public __destruct ( )

create() public method

public create ( )

destroy() public method

public destroy ( )

fail() public method

public fail ( $ex, $params = [] )

getAlias() public method

public getAlias ( )

getArgs() public method

public getArgs ( )

getCore() public method

public getCore ( )

getEventEmitter() public method

public getEventEmitter ( )

getHash() public method

public getHash ( )

getLoop() public method

public getLoop ( )

getLoopState() protected method

protected getLoopState ( ) : integer
return integer

getName() public method

public getName ( )

getParent() public method

public getParent ( )

getRuntimeManager() public method

public getRuntimeManager ( )

getState() public method

public getState ( )

getSupervisor() public method

public getSupervisor ( )

getType() public method

public getType ( )

isCreated() public method

public isCreated ( )

isDestroyed() public method

public isDestroyed ( )

isFailed() public method

public isFailed ( )

isLoopState() protected method

protected isLoopState ( integer $state ) : boolean
$state integer
return boolean

isStarted() public method

public isStarted ( )

isState() public method

public isState ( $state )

isStopped() public method

public isStopped ( )

setCore() public method

public setCore ( Kraken\Core\CoreInterface $core = null )
$core Kraken\Core\CoreInterface

setEventEmitter() public method

public setEventEmitter ( Kraken\Event\EventEmitterInterface $emitter = null )
$emitter Kraken\Event\EventEmitterInterface

setLoop() public method

public setLoop ( Kraken\Loop\LoopExtendedInterface $loop = null )
$loop Kraken\Loop\LoopExtendedInterface

setLoopState() protected method

protected setLoopState ( integer $state )
$state integer

setRuntimeManager() public method

public setRuntimeManager ( Kraken\Runtime\RuntimeManagerInterface $manager = null )
$manager Kraken\Runtime\RuntimeManagerInterface

setState() public method

public setState ( $state )

setSupervisor() public method

public setSupervisor ( Kraken\Supervision\SupervisorInterface $supervisor = null )
$supervisor Kraken\Supervision\SupervisorInterface

start() public method

public start ( )

startLoop() protected method

protected startLoop ( )

state() public method

public state ( )

stop() public method

public stop ( )

stopLoop() protected method

protected stopLoop ( )

succeed() public method

public succeed ( )

supervisor() public method

public supervisor ( )

Property Details

$alias protected property

protected string $alias
return string

$args protected property

protected string[] $args
return string[]

$core protected property

protected CoreInterface,Kraken\Core $core
return Kraken\Core\CoreInterface

$eventEmitter protected property

protected EventEmitterInterface,Kraken\Event $eventEmitter
return Kraken\Event\EventEmitterInterface

$loop protected property

protected LoopExtendedInterface,Kraken\Loop $loop
return Kraken\Loop\LoopExtendedInterface

$loopBackup protected property

protected LoopExtendedInterface,Kraken\Loop $loopBackup
return Kraken\Loop\LoopExtendedInterface

$loopNextState protected property

protected int $loopNextState
return integer

$loopState protected property

protected int $loopState
return integer

$manager protected property

protected RuntimeManagerInterface,Kraken\Runtime $manager
return Kraken\Runtime\RuntimeManagerInterface

$name protected property

protected string $name
return string

$parent protected property

protected string $parent
return string

$state protected property

protected int $state
return integer

$supervisor protected property

protected SupervisorInterface,Kraken\Supervision $supervisor
return Kraken\Supervision\SupervisorInterface