You are here

public function StateMachine::__construct in State Machine 6

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

File

inc/base.inc, line 10

Class

StateMachine

Code

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