PHP Class UserAgentParser\Provider\WhichBrowser

See also: https://github.com/WhichBrowser/Parser
Author: Martin Keckeis ([email protected])
Author: Niels Leenheer ([email protected])
Inheritance: extends AbstractProvider
Show file Open project: ThaDafinser/UserAgentParser Class Usage Examples

Protected Properties

Property Type Description
$detectionCapabilities
$homepage string Homepage of the provider
$name string Name of the provider
$packageName string Composer package name

Public Methods

Method Description
__construct ( )
getParser ( array $headers ) : WhichBrowser\Parser
parse ( $userAgent, array $headers = [] )

Private Methods

Method Description
hydrateBot ( Bot $bot, Browser $browserRaw )
hydrateBrowser ( Browser $browser, Browser $browserRaw )
hydrateDevice ( Device $device, Device $deviceRaw, WhichBrowser\Parser $parser )
hydrateOperatingSystem ( OperatingSystem $os, Os $osRaw )
hydrateRenderingEngine ( RenderingEngine $engine, WhichBrowser\Model\Engine $engineRaw )

Method Details

__construct() public method

public __construct ( )

getParser() public method

public getParser ( array $headers ) : WhichBrowser\Parser
$headers array
return WhichBrowser\Parser

parse() public method

public parse ( $userAgent, array $headers = [] )
$headers array

Property Details

$detectionCapabilities protected property

protected $detectionCapabilities

$homepage protected property

Homepage of the provider
protected string $homepage
return string

$name protected property

Name of the provider
protected string $name
return string

$packageName protected property

Composer package name
protected string $packageName
return string