HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/bt667/www/wp-content/plugins/easy-digital-downloads/includes/adjustments/class-tax-rate.php
<?php
/**
 * Tax Rate Object.
 *
 * @package     EDD
 * @subpackage  Adjustments
 * @copyright   Copyright (c) 2018, Easy Digital Downloads, LLC
 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since       3.0
 */
namespace EDD\Adjustments;

// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

/**
 * Tax Rate Class.
 *
 * @since 3.0
 *
 * @property int $id
 * @property string $country
 * @property string $region
 */
class Tax_Rate extends Adjustment {

	/**
	 * ID.
	 *
	 * @since 3.0
	 * @access protected
	 * @var int
	 */
	protected $id;

	/**
	 * Country.
	 *
	 * @since  3.0
	 * @access protected
	 * @var    string
	 */
	protected $country;

	/**
	 * Region.
	 *
	 * @since  3.0
	 * @access protected
	 * @var    string
	 */
	protected $region;

	/**
	 * Constructor.
	 *
	 * @since 3.0
	 *
	 * @param mixed $object Object to populate members for.
	 */
	public function __construct( $object = null ) {
		parent::__construct( $object );

		$this->country = $this->name;
		$this->region  = $this->description;
	}
}