File "Request_Limit_Reached.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/facebook-for-woocommerce/includes/API/Exceptions/Request_Limit_Reached.php
File size: 1.1 KB
MIME-type: text/x-php
Charset: utf-8
<?php
// phpcs:ignoreFile
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @package FacebookCommerce
*/
namespace SkyVerge\WooCommerce\Facebook\API\Exceptions;
defined( 'ABSPATH' ) or exit;
use SkyVerge\WooCommerce\PluginFramework\v5_10_0 as Framework;
/**
* Exception thrown in response to a rate limiting error.
*
* @since 2.0.0
*/
class Request_Limit_Reached extends Framework\SV_WC_API_Exception {
/** @var \DateTime date & time representing when the request limit will be lifted */
protected $throttle_end;
/**
* Gets the estimated throttle end.
*
* @since 2.1.0
*
* @return \DateTime|null
*/
public function get_throttle_end() {
return $this->throttle_end;
}
/**
* Sets the estimated throttle end.
*
* @since 2.1.0
*
* @param \DateTime $date_time date time object representing when the throttle will end
*/
public function set_throttle_end( \DateTime $date_time ) {
$this->throttle_end = $date_time;
}
}