HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/InstallTimestamp.php.tar
httpdocs/wp-content/plugins/google-listings-and-ads/src/Internal/InstallTimestamp.php000064400000002252151551234410033376 0ustar00var/www/vhosts/uyarreklam.com.tr<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Internal;

use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\AdminConditional;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\Conditional;
use Automattic\WooCommerce\GoogleListingsAndAds\Internal\Interfaces\FirstInstallInterface;
use Automattic\WooCommerce\GoogleListingsAndAds\Options\OptionsAwareInterface;
use Automattic\WooCommerce\GoogleListingsAndAds\Options\OptionsAwareTrait;
use Automattic\WooCommerce\GoogleListingsAndAds\Options\OptionsInterface;
use Automattic\WooCommerce\GoogleListingsAndAds\PluginHelper;

defined( 'ABSPATH' ) || exit;

/**
 * Class InstallTimestamp
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Internal
 */
class InstallTimestamp implements Conditional, FirstInstallInterface, OptionsAwareInterface {

	use AdminConditional;
	use OptionsAwareTrait;
	use PluginHelper;

	/**
	 * Logic to run when the plugin is first installed.
	 */
	public function first_install(): void {
		$this->options->add( OptionsInterface::INSTALL_TIMESTAMP, time() );
		$this->options->add( OptionsInterface::INSTALL_VERSION, $this->get_version() );
	}
}