PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
plugins
/
wp-statistics
/
src
/
Decorators
<?php namespace WP_Statistics\Decorators; use WP_Statistics\Service\Analytics\DeviceDetection\DeviceHelper; use WP_STATISTICS\Helper; class BrowserDecorator { private $visitor; public function __construct($visitor) { $this->visitor = $visitor; } /** * Returns the raw agent value. * * @return string */ public function getRaw() { return \WP_STATISTICS\Admin_Template::unknownToNotSet($this->visitor->agent) ?? null; } /** * Get the browser name. * * @return string */ public function getName() { return \WP_STATISTICS\Admin_Template::unknownToNotSet($this->visitor->agent); } /** * Get the browser logo URL. * * @return string */ public function getLogo() { return DeviceHelper::getBrowserLogo($this->visitor->agent); } /** * Get the browser version used by the visitor. * * @return string|null */ public function getVersion() { return Helper::getMajorVersionOnly($this->visitor->version) ?? null; } }
[-] NotificationDecorator.php
[edit]
[-] ResourceDecorator.php
[edit]
[-] MarketingCampaignDecorator.php
[edit]
[-] DeviceDecorator.php
[edit]
[-] EventDecorator.php
[edit]
[-] ReferralDecorator.php
[edit]
[-] UserDecorator.php
[edit]
[-] OsDecorator.php
[edit]
[-] VisitorDecorator.php
[edit]
[-] BrowserDecorator.php
[edit]
[-] LocationDecorator.php
[edit]
[+]
..