-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFactoryInterface.php
More file actions
69 lines (63 loc) · 2.19 KB
/
FactoryInterface.php
File metadata and controls
69 lines (63 loc) · 2.19 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
66
67
68
69
<?php
namespace FDevs\ContactList;
interface FactoryInterface
{
/**
* create contact
*
* @param string $slug
*
* @return ContactInterface
*/
public function createContact($slug);
/**
* create connect
*
* @param string $type
* @param string $text
* @param string $link
*
* @return ConnectInterface
*/
public function createConnect($type, $text, $link);
/**
* add connect
*
* @param ContactInterface $contact
* @param string $type
* @param string $text
* @param string $link
*
* @return self
*/
public function addConnect(ContactInterface $contact, $type, $text, $link);
/**
* create address
*
* @param string $country country. For example, Russia. You can also provide the two-letter ISO 3166-1 alpha-2 country code.
* @param string $locality locality. For example, Moscow.
* @param string $region region. For example, Moscow region.
* @param string $box post office box number for PO box addresses.
* @param string $code postal code. For example, 103132.
* @param string $street street address. For example, st. Ilinka 23
* @param string $locale
*
* @return AddressInterface
*/
public function createAddress($country, $locality, $region, $box, $code, $street, $locale = 'en');
/**
* add address
*
* @param ContactInterface $contact
* @param string $country country. For example, Russia. You can also provide the two-letter ISO 3166-1 alpha-2 country code.
* @param string $locality locality. For example, Moscow.
* @param string $region region. For example, Moscow region.
* @param string $box post office box number for PO box addresses.
* @param string $code postal code. For example, 103132.
* @param string $street street address. For example, st. Ilinka 23
* @param string $locale
*
* @return self
*/
public function addAddress(ContactInterface $contact, $country, $locality, $region, $box, $code, $street, $locale = 'en');
}