Sindbad~EG File Manager

Current Path : /var/www/html/sumar.com.py/wp-content/plugins/wp-statistics/src/Decorators/
Upload File :
Current File : /var/www/html/sumar.com.py/wp-content/plugins/wp-statistics/src/Decorators/BrowserDecorator.php

<?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;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists