You are here

public function StateMachine::__construct in State Machine 7

Same name and namespace in other branches
  1. 6 inc/base.inc \StateMachine::__construct()
  2. 7.3 inc/base.inc \StateMachine::__construct()
  3. 7.2 inc/base.inc \StateMachine::__construct()

File

inc/base.inc, line 13
base.inc

Class

StateMachine
@file base.inc

Code

public function __construct($object = NULL) {
  $this->object = $object;
  $this
    ->init();
  $this
    ->set_current_state((string) $this
    ->load());
}