PHP Class Metabor\Statemachine\Transition

Author: Oliver Tischlinger
Inheritance: implements MetaborStd\Statemachine\TransitionInterface, implements MetaborStd\WeightedInterface
Afficher le fichier Open project: metabor/statemachine Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( MetaborStd\Statemachine\StateInterface $targetState, string $eventName = null, MetaborStd\Statemachine\ConditionInterface $condition = null )
getCondition ( ) : MetaborStd\Statemachine\ConditionInterface
getConditionName ( )
getEventName ( )
getTargetState ( )
getWeight ( ) : float
isActive ( $subject, ArrayAccess $context, MetaborStd\Event\EventInterface $event = null )
setWeight ( float $weight )

Method Details

__construct() public méthode

public __construct ( MetaborStd\Statemachine\StateInterface $targetState, string $eventName = null, MetaborStd\Statemachine\ConditionInterface $condition = null )
$targetState MetaborStd\Statemachine\StateInterface
$eventName string
$condition MetaborStd\Statemachine\ConditionInterface

getCondition() public méthode

public getCondition ( ) : MetaborStd\Statemachine\ConditionInterface
Résultat MetaborStd\Statemachine\ConditionInterface

getConditionName() public méthode

public getConditionName ( )

getEventName() public méthode

public getEventName ( )

getTargetState() public méthode

public getTargetState ( )

getWeight() public méthode

public getWeight ( ) : float
Résultat float

isActive() public méthode

public isActive ( $subject, ArrayAccess $context, MetaborStd\Event\EventInterface $event = null )
$context ArrayAccess
$event MetaborStd\Event\EventInterface

setWeight() public méthode

public setWeight ( float $weight )
$weight float