PHP Class UserAgentParser\Provider\Http\DeviceAtlasCom

See also: https://deviceatlas.com/resources/enterprise-api-documentation
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractHttpProvider
ファイルを表示 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

Public Methods

Method Description
__construct ( Client $client, $apiKey )
parse ( $userAgent, array $headers = [] )

Protected Methods

Method Description
getResult ( $userAgent, array $headers )

Private Methods

Method Description
hydrateBrowser ( Browser $browser, stdClass $resultRaw )
hydrateDevice ( Device $device, stdClass $resultRaw )
hydrateOperatingSystem ( OperatingSystem $os, stdClass $resultRaw )
hydrateRenderingEngine ( RenderingEngine $engine, stdClass $resultRaw )

Method Details

__construct() public method

public __construct ( Client $client, $apiKey )
$client GuzzleHttp\Client

getResult() protected method

protected getResult ( $userAgent, array $headers )
$headers array

parse() public method

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

Property Details

$detectionCapabilities protected_oe property

protected $detectionCapabilities

$homepage protected_oe property

Homepage of the provider
protected string $homepage
return string

$name protected_oe property

Name of the provider
protected string $name
return string