PHP Interface BrowscapPHP\Parser\Helper\GetDataInterface

Author: Christoph Ziegenberg ([email protected])
Author: Thomas Müller ([email protected])
Show file Open project: browscap/browscap-php Interface Usage Examples

Public Methods

Method Description
__construct ( BrowscapPHP\Cache\BrowscapCacheInterface $cache, Psr\Log\LoggerInterface $logger, Quoter $quoter ) class contsructor
getSettings ( string $pattern, array $settings = [] ) : array Gets the settings for a given pattern (method calls itself to get the data from the parent patterns)

Method Details

__construct() public method

class contsructor
public __construct ( BrowscapPHP\Cache\BrowscapCacheInterface $cache, Psr\Log\LoggerInterface $logger, Quoter $quoter )
$cache BrowscapPHP\Cache\BrowscapCacheInterface
$logger Psr\Log\LoggerInterface
$quoter BrowscapPHP\Helper\Quoter

getSettings() public method

Gets the settings for a given pattern (method calls itself to get the data from the parent patterns)
public getSettings ( string $pattern, array $settings = [] ) : array
$pattern string
$settings array
return array