DeviceDetector\Parser\ParserAbstract::getRegexes PHP Method

getRegexes() protected method

Returns the result of the parsed yml file defined in $fixtureFile
protected getRegexes ( ) : array
return array
    protected function getRegexes()
    {
        if (empty($this->regexList)) {
            $cacheKey = 'DeviceDetector-' . DeviceDetector::VERSION . 'regexes-' . $this->getName();
            $cacheKey = preg_replace('/([^a-z0-9_-]+)/i', '', $cacheKey);
            $this->regexList = $this->getCache()->fetch($cacheKey);
            if (empty($this->regexList)) {
                $this->regexList = $this->getYamlParser()->parseFile($this->getRegexesDirectory() . DIRECTORY_SEPARATOR . $this->fixtureFile);
                $this->getCache()->save($cacheKey, $this->regexList);
            }
        }
        return $this->regexList;
    }