-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddressInterface.php
More file actions
65 lines (59 loc) · 1.2 KB
/
AddressInterface.php
File metadata and controls
65 lines (59 loc) · 1.2 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
namespace FDevs\ContactList;
interface AddressInterface
{
/**
* set country. For example, Russia. You can also provide the two-letter ISO 3166-1 alpha-2 country code.
*
* @param string $country
*
* @return self
*/
public function setCountry($country);
/**
* set locality. For example, Moscow.
*
* @param string $locality
*
* @return self
*/
public function setLocality($locality);
/**
* set region. For example, Moscow region.
*
* @param string $region
*
* @return self
*/
public function setRegion($region);
/**
* set post office box number for PO box addresses.
*
* @param string $box
*
* @return self
*/
public function setBox($box);
/**
* set postal code. For example, 103132.
*
* @param string $code
*
* @return self
*/
public function setCode($code);
/**
* set street address. For example, st. Ilinka 23
*
* @param string $street
*
* @return self
*/
public function setStreet($street);
/**
* is empty address
*
* @return bool
*/
public function isEmpty();
}