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

namespace Automattic\WooCommerce\GoogleListingsAndAds\Google;

defined( 'ABSPATH' ) || exit;

/**
 * Class BatchProductResponse
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Google
 */
class BatchProductResponse {
	/**
	 * @var BatchProductEntry[] Products that were successfully updated, deleted or retrieved.
	 */
	protected $products;

	/**
	 * @var BatchInvalidProductEntry[]
	 */
	protected $errors;

	/**
	 * BatchProductResponse constructor.
	 *
	 * @param BatchProductEntry[]        $products
	 * @param BatchInvalidProductEntry[] $errors
	 */
	public function __construct( array $products, array $errors ) {
		$this->products = $products;
		$this->errors   = $errors;
	}
	/**
	 * @return BatchProductEntry[]
	 */
	public function get_products(): array {
		return $this->products;
	}

	/**
	 * @return BatchInvalidProductEntry[]
	 */
	public function get_errors(): array {
		return $this->errors;
	}
}