File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/InstallTimestamp.php.tar
httpdocs/wp-content/plugins/google-listings-and-ads/src/Internal/InstallTimestamp.php 0000644 00000002252 15155123441 0033376 0 ustar 00 var/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() );
}
}