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/DeleteCouponEntry.php.tar
httpdocs/wp-content/plugins/google-listings-and-ads/src/Google/DeleteCouponEntry.php000064400000002614151544614740033170 0ustar00var/www/vhosts/uyarreklam.com.tr<?php
declare(strict_types = 1);
namespace Automattic\WooCommerce\GoogleListingsAndAds\Google;

use Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Service\ShoppingContent\Promotion as GooglePromotion;
defined( 'ABSPATH' ) || exit();

/**
 * Class DeleteCouponEntry
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Google
 */
class DeleteCouponEntry {

	/**
	 *
	 * @var int
	 */
	protected $wc_coupon_id;

	/**
	 *
	 * @var GooglePromotion
	 */
	protected $google_promotion;

	/**
	 *
	 * @var array List of country to google promotion id mappings
	 */
	protected $synced_google_ids;

	/**
	 * DeleteCouponEntry constructor.
	 *
	 * @param int             $wc_coupon_id
	 * @param GooglePromotion $google_promotion
	 * @param array           $synced_google_ids
	 */
	public function __construct(
		int $wc_coupon_id,
		GooglePromotion $google_promotion,
		array $synced_google_ids
	) {
		$this->wc_coupon_id      = $wc_coupon_id;
		$this->google_promotion  = $google_promotion;
		$this->synced_google_ids = $synced_google_ids;
	}

	/**
	 *
	 * @return int
	 */
	public function get_wc_coupon_id(): int {
		return $this->wc_coupon_id;
	}

	/**
	 *
	 * @return GooglePromotion
	 */
	public function get_google_promotion(): GooglePromotion {
		return $this->google_promotion;
	}

	/**
	 *
	 * @return array
	 */
	public function get_synced_google_ids(): array {
		return $this->synced_google_ids;
	}
}