src/Parser/BrowserParser.php
public function parse(string $useragent): array
    {
        $mode = $this->fileParser->parseFile(
            new \SplFileInfo(self::GENERIC_FILE),
            $useragent,
            'unknown'
        );

        $key = $this->fileParser->parseFile(
            new \SplFileInfo(sprintf(self::SPECIFIC_FILE, $mode)),
            $useragent,
            'unknown'
        );

        return $this->load($key, $useragent);
    }
public function parse(string $useragent): array
    {
        $mode = $this->fileParser->parseFile(
            new \SplFileInfo(self::GENERIC_FILE),
            $useragent,
            'unknown'
        );

        $key = $this->fileParser->parseFile(
            new \SplFileInfo(sprintf(self::SPECIFIC_FILE, $mode)),
            $useragent,
            'unknown'
        );

        return $this->load($key, $useragent);
    }
public function parse ( string $ useragent ) : array { $ mode = $ this -> fileParser -> parseFile ( new \ SplFileInfo ( self :: GENERIC_FILE ) , $ useragent , 'unknown' ) ; $ key = $ this -> fileParser -> parseFile ( new \ SplFileInfo ( sprintf ( self :: SPECIFIC_FILE , $ mode ) ) , $ useragent , 'unknown' ) ; return $ this -> load ( $ key , $ useragent ) ; }
Gets the information about the browser by User Agent

@param string $useragent

@throws \ExceptionalJSON\DecodeErrorException

@return array
Gets the information about the browser by User Agent