raoul2000\workflow\base\StatusIdConverter::__construct PHP Метод

__construct() публичный Метод

The parameter map must be defined in the configuration array passed as argument. It contains the associative array used to convert statuses.
public __construct ( array $config = [] )
$config array
    public function __construct($config = [])
    {
        if (!empty($config['map'])) {
            if (!is_array($config['map'])) {
                throw new InvalidConfigException('The map must be an array');
            }
            $this->_map = $config['map'];
            unset($config['map']);
        } else {
            throw new InvalidConfigException('missing map');
        }
        parent::__construct($config);
    }