public function StateMachine_Event::__construct in State Machine 7.2
Same name and namespace in other branches
- 6 inc/base.inc \StateMachine_Event::__construct()
- 7.3 inc/base.inc \StateMachine_Event::__construct()
- 7 inc/base.inc \StateMachine_Event::__construct()
File
Class
Code
public function __construct($key, $machine, $options = array()) {
$this->key = $key;
$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;
}