raoul2000\workflow\base\SimpleWorkflowBehavior::__construct PHP Method

__construct() public method

Instance constructor.
public __construct ( array $config = [] )
$config array
    public function __construct($config = [])
    {
        if (array_key_exists('defaultWorkflowId', $config)) {
            if (is_string($config['defaultWorkflowId'])) {
                $this->_defaultWorkflowId = $config['defaultWorkflowId'];
            } else {
                throw new InvalidConfigException("Invalid property Type : 'defaultWorkflowId' must be a string");
            }
            unset($config['defaultWorkflowId']);
        }
        parent::__construct($config);
    }