PHP Class izzum\examples\inheritance\SuperHero

The other three usage models being standalone, composition and delegation.
Author: rolf
Inheritance: extends izzum\statemachine\StateMachine
Afficher le fichier Open project: rolfvreijdenberger/izzum-statemachine Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $name, $alias )
changeIntoCostume ( SuperHero $entity )
changeIntoNormalClothes ( SuperHero $entity )
stopBeingSuper ( SuperHero $entity )

Méthodes protégées

Méthode Description
_onCheckCanTransition ( Transition $transition )
_onEnterState ( Transition $transition )
_onExitState ( Transition $transition )
_onTransition ( Transition $transition )

Private Methods

Méthode Description
printMyAwesomeness ( $as_superhero = true )
updateStatistics ( $state )

Method Details

__construct() public méthode

public __construct ( $name, $alias )

_onCheckCanTransition() protected méthode

protected _onCheckCanTransition ( Transition $transition )
$transition izzum\statemachine\Transition

_onEnterState() protected méthode

protected _onEnterState ( Transition $transition )
$transition izzum\statemachine\Transition

_onExitState() protected méthode

protected _onExitState ( Transition $transition )
$transition izzum\statemachine\Transition

_onTransition() protected méthode

protected _onTransition ( Transition $transition )
$transition izzum\statemachine\Transition

changeIntoCostume() public méthode

public changeIntoCostume ( SuperHero $entity )
$entity SuperHero

changeIntoNormalClothes() public méthode

public changeIntoNormalClothes ( SuperHero $entity )
$entity SuperHero

stopBeingSuper() public méthode

public stopBeingSuper ( SuperHero $entity )
$entity SuperHero