HEX
Server: Apache
System: Linux p3plzcpnl504902.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: nhqyemt2u0zd (3690907)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /home/nhqyemt2u0zd/public_html/wp-content/plugins/contact_1773657477/libs/UserAgent/UserAgent.php
<?php

namespace epsdonatj\UserAgent;

class UserAgent implements UserAgentInterface {

	/**
	 * @var string|null
	 */
	private $platform;
	/**
	 * @var string|null
	 */
	private $browser;
	/**
	 * @var string|null
	 */
	private $browserVersion;

	/**
	 * UserAgent constructor.
	 *
	 * @param string|null $platform
	 * @param string|null $browser
	 * @param string|null $browserVersion
	 */
	public function __construct( $platform, $browser, $browserVersion ) {
		$this->platform       = $platform;
		$this->browser        = $browser;
		$this->browserVersion = $browserVersion;
	}

	/**
	 * @return string|null
	 * @see \epsdonatj\UserAgent\Platforms for a list of tested platforms
	 */
	public function platform() {
		return $this->platform;
	}

	/**
	 * @return string|null
	 * @see \epsdonatj\UserAgent\Browsers for a list of tested browsers.
	 */
	public function browser() {
		return $this->browser;
	}

	/**
	 * The version string. Formatting depends on the browser.
	 *
	 * @return string|null
	 */
	public function browserVersion() {
		return $this->browserVersion;
	}
}