public function StateMachine_Event::__construct in State Machine 7
Same name and namespace in other branches
- 6 inc/base.inc \StateMachine_Event::__construct()
- 7.3 inc/base.inc \StateMachine_Event::__construct()
- 7.2 inc/base.inc \StateMachine_Event::__construct()
File
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;
}