PhpBench\Registry\Config::__construct PHP Method

__construct() public method

public __construct ( $name, array $config )
$config array
    public function __construct($name, array $config)
    {
        if (!preg_match(self::NAME_REGEX, $name)) {
            throw new \InvalidArgumentException(sprintf('Configuration names may only contain alpha-numeric characters, _ and -. Got "%s"', $name));
        }
        $this->name = $name;
        parent::__construct($config);
    }