src/ModelDetector.php
protected function setupResultObject()
    {
        $name = $this->additionalInfo['name'];
        if (!\array_key_exists($name, $this->config)) {
            return;
        }
        $patternList = $this->config[$name];
        foreach ($patternList as $series => $data) {
            if(array_key_exists('pattern', $data)) {
                $this->detectModelByPattern($series,$data['pattern']);
            } elseif (array_key_exists('models', $data)) {
                $this->detectModelByModelList($series, $data['models']);
            }
        }
    }
protected function setupResultObject()
    {
        $name = $this->additionalInfo['name'];
        if (!\array_key_exists($name, $this->config)) {
            return;
        }
        $patternList = $this->config[$name];
        foreach ($patternList as $series => $data) {
            if(array_key_exists('pattern', $data)) {
                $this->detectModelByPattern($series,$data['pattern']);
            } elseif (array_key_exists('models', $data)) {
                $this->detectModelByModelList($series, $data['models']);
            }
        }
    }
Setup result of object