kahlan\Log::__construct PHP Метод

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

The Constructor.
public __construct ( array $config = [] )
$config array The Suite config array. Options are: -`'scope'` _object_: the scope context instance.
    public function __construct($config = [])
    {
        $defaults = ['scope' => null, 'type' => 'passed', 'not' => false, 'description' => null, 'matcher' => null, 'matcherName' => null, 'data' => [], 'backtrace' => [], 'exception' => null];
        $config += $defaults;
        $this->_scope = $config['scope'];
        $this->_type = $config['type'];
        $this->_not = $config['not'];
        $this->_description = $config['description'];
        $this->_matcher = $config['matcher'];
        $this->_matcherName = $config['matcherName'];
        $this->_data = $config['data'];
        $this->exception($config['exception']);
        if ($config['backtrace']) {
            $this->backtrace($config['backtrace']);
        } elseif ($this->scope()) {
            $this->backtrace($this->scope()->backtrace());
        }
    }