File "DeleteCouponEntry.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/google-listings-and-ads/src/Google/DeleteCouponEntry.php
File size: 1.41 KB
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types = 1);
namespace Automattic\WooCommerce\GoogleListingsAndAds\Google;
use Automattic\WooCommerce\GoogleListingsAndAds\Coupon\WCCouponAdapter;
use 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;
/**
* BatchProductRequestEntry 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;
}
}