src/Parser/PlatformParser.php
/**
     * Gets the information about the browser by User Agent
     *
     * @throws NotFoundException
     * @throws UnexpectedValueException
     */
Gets the information about the browser by User Agent
@throws NotFoundException
@throws UnexpectedValueException
Gets the information about the browser by User Agent @throws NotFoundException @throws UnexpectedValueException
public function parse(string $useragent): OsInterface
    {
        $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 ) : OsInterface { $ 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
 @throws NotFoundException
 @throws UnexpectedValueException
Gets the information about the browser by User Agent @throws NotFoundException @throws UnexpectedValueException