public function StateMachine_Event::__construct in State Machine 6
Same name and namespace in other branches
- 7.3 inc/base.inc \StateMachine_Event::__construct()
- 7 inc/base.inc \StateMachine_Event::__construct()
- 7.2 inc/base.inc \StateMachine_Event::__construct()
File
- inc/
base.inc, line 240
Class
Code
public function __construct($machine, $options = array()) {
$this->machine = $machine;
// Normalize the origin option.
$origin = empty($options['origin']) ? array() : $options['origin'];
$options['origin'] = is_array($origin) ? $origin : array(
$origin,
);
$this->options = $options;
}