# packeta/2.3.1/src/Packetery/Module/Framework/WcCustomerTrait.php

Packeta, version 2.3.1. 36 lines.

- Page: https://pluginprobe.com/plugins/packeta/2.3.1/code/src/Packetery/Module/Framework/WcCustomerTrait.php
- Raw: https://pluginprobe.com/plugins/packeta/2.3.1/raw/src/Packetery/Module/Framework/WcCustomerTrait.php
- Modified: 2025-03-10T10:47:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/packeta/2.3.1/code/src/Packetery/Module/Framework/WcCustomerTrait.php#L10-L20`.

```php
<?php
/**
 * Trait WcCustomerTrait.
 *
 * @package Packetery
 */

declare( strict_types=1 );

namespace Packetery\Module\Framework;

/**
 * Trait WcCustomerTrait.
 *
 * @package Packetery
 */
trait WcCustomerTrait {
	/**
	 * Gets customer shipping country.
	 *
	 * @return string|null
	 */
	public function customerGetShippingCountry(): ?string {
		return WC()->customer->get_shipping_country();
	}

	/**
	 * Gets customer billing country.
	 *
	 * @return string|null
	 */
	public function customerGetBillingCountry(): ?string {
		return WC()->customer->get_billing_country();
	}
}

```
