kahlan\Arg::__construct PHP Method

__construct() public method

Constructor
public __construct ( array $config = [] )
$config array The argument matcher options. Possible values are: - `'not'` _boolean_: indicate if the matcher is a negative matcher. - `'matcher'` _string_ : the fully namespaced matcher class name. - `'args'` _string_ : the expected arcuments.
    public function __construct($config = [])
    {
        $defaults = ['name' => '', 'not' => false, 'matchers' => [], 'args' => []];
        $config += $defaults;
        $this->_name = $config['name'];
        $this->_not = $config['not'];
        $this->_matchers = $config['matchers'];
        $this->_args = $config['args'];
    }