-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAddress.php
50 lines (40 loc) · 1.03 KB
/
Address.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
declare(strict_types=1);
/**
* Contains the Address interface.
*
* @copyright Copyright (c) 2017 Attila Fulop
* @author Attila Fulop
* @license MIT
* @since 2017-11-26
*
*/
namespace Vanilo\Contracts;
interface Address
{
/**
* Returns the name of the person and/or organization belonging to the address
*/
public function getName(): string;
/**
* The country's ISO 3166-1 alpha-2 code
*/
public function getCountryCode(): string;
/**
* Returns the province (state, county, region, etc) code in national notation
*/
public function getProvinceCode(): ?string;
/**
* The postal code, or zip code if applicable
*/
public function getPostalCode(): ?string;
/**
* The city (town, village) or other locality if applicable
*/
public function getCity(): ?string;
/**
* The address part (Street, number, building, PO box etc)
*/
public function getAddress(): string;
public function getAddress2(): ?string;
}