AnalyticsService
in package
Tags
Table of Contents
- $detector : DeviceDetector
- $ipToLocationService : IpToLocationService
- $logger : LoggerInterface
- $request : ServerRequestInterface
- __construct() : mixed
- trackBlogPost() : AnalyticsEntry|null
- trackMenuItem() : AnalyticsEntry|null
- trackNotFound() : AnalyticsEntry|null
- trackRequest() : AnalyticsEntry|null
Properties
$detector read-only
private
DeviceDetector
$detector
Tags
$ipToLocationService read-only
private
IpToLocationService
$ipToLocationService
Tags
$logger read-only
private
LoggerInterface
$logger
Tags
$request read-only
private
ServerRequestInterface
$request
Tags
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —trackBlogPost()
public
trackBlogPost(BlogPost $post) : AnalyticsEntry|null
Parameters
- $post : BlogPost
Tags
Return values
AnalyticsEntry|null —trackMenuItem()
public
trackMenuItem(MenuItem $menuItem) : AnalyticsEntry|null
Parameters
- $menuItem : MenuItem
Tags
Return values
AnalyticsEntry|null —trackNotFound()
public
trackNotFound() : AnalyticsEntry|null
Tags
Return values
AnalyticsEntry|null —trackRequest()
public
trackRequest() : AnalyticsEntry|null