File "BatchProductResponse.php"
Full Path: /home/warrior1/public_html/plugins/google-listings-and-ads/src/Google/BatchProductResponse.php
File size: 957 bytes
MIME-type: text/x-php
Charset: utf-8
<?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;
}
}