PluginProbe
Packeta / 1.4.1
Packeta v1.4.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Module / EntityFactory / Address.php

Address.php in Packeta 1.4.1, at src/Packetery/Module/EntityFactory/Address.php

37 lines 616 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class Address
4 *
5 * @package Packetery\Module\EntityFactory
6 */
7
8 declare( strict_types=1 );
9
10
11 namespace Packetery\Module\EntityFactory;
12
13 use Packetery\Core\Entity;
14
15 /**
16 * Class Address
17 *
18 * @package Packetery\Module\EntityFactory
19 */
20 class Address {
21
22 /**
23 * Return WC store default address.
24 *
25 * @return Entity\Address
26 */
27 public function fromWcStoreOptions(): Entity\Address {
28 $address = new Entity\Address(
29 get_option( 'woocommerce_store_address', null ),
30 get_option( 'woocommerce_store_city', null ),
31 get_option( 'woocommerce_store_postcode', null )
32 );
33
34 return $address;
35 }
36 }
37