Current Path : /storage/v11800/lifespanstoresnew/public_html/wp-content/plugins/google-listings-and-ads/src/Google/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/lifespanstoresnew/public_html/wp-content/plugins/google-listings-and-ads/src/Google/DeleteCouponEntry.php |
<?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;
/**
* 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;
}
}