PHP Class BrowscapPHP\Parser\Ini

Author: Christoph Ziegenberg ([email protected])
Author: Thomas Müller ([email protected])
Inheritance: implements BrowscapPHP\Parser\ParserInterface
Show file Open project: browscap/browscap-php

Public Methods

Method Description
__construct ( BrowscapPHP\Parser\Helper\GetPatternInterface $patternHelper, BrowscapPHP\Parser\Helper\GetDataInterface $dataHelper, BrowscapPHP\Formatter\FormatterInterface $formatter ) class constructor
getBrowser ( string $userAgent ) : BrowscapPHP\Formatter\FormatterInterface | null Gets the browser data formatr for the given user agent (or null if no data avaailble, no even the default browser)

Method Details

__construct() public method

class constructor
public __construct ( BrowscapPHP\Parser\Helper\GetPatternInterface $patternHelper, BrowscapPHP\Parser\Helper\GetDataInterface $dataHelper, BrowscapPHP\Formatter\FormatterInterface $formatter )
$patternHelper BrowscapPHP\Parser\Helper\GetPatternInterface
$dataHelper BrowscapPHP\Parser\Helper\GetDataInterface
$formatter BrowscapPHP\Formatter\FormatterInterface

getBrowser() public method

Gets the browser data formatr for the given user agent (or null if no data avaailble, no even the default browser)
public getBrowser ( string $userAgent ) : BrowscapPHP\Formatter\FormatterInterface | null
$userAgent string
return BrowscapPHP\Formatter\FormatterInterface | null