forked from smsapi/smsapi-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContactsFeature.php
More file actions
39 lines (29 loc) · 1.18 KB
/
ContactsFeature.php
File metadata and controls
39 lines (29 loc) · 1.18 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
<?php
declare(strict_types=1);
namespace Smsapi\Client\Feature\Contacts;
use Smsapi\Client\Feature\Contacts\Bag\CreateContactBag;
use Smsapi\Client\Feature\Contacts\Bag\DeleteContactBag;
use Smsapi\Client\Feature\Contacts\Bag\FindContactBag;
use Smsapi\Client\Feature\Contacts\Bag\FindContactsBag;
use Smsapi\Client\Feature\Contacts\Bag\UpdateContactBag;
use Smsapi\Client\Feature\Contacts\Data\Contact;
use Smsapi\Client\Feature\Contacts\Fields\ContactsFieldsFeature;
use Smsapi\Client\Feature\Contacts\Groups\ContactsGroupsFeature;
/**
* @api
*/
interface ContactsFeature
{
/**
* @param FindContactsBag|null $findContactsBag
* @return Contact[]
*/
public function findContacts($findContactsBag = null): array;
public function findContact(FindContactBag $findContactBag): Contact;
public function createContact(CreateContactBag $createContactBag): Contact;
public function updateContact(UpdateContactBag $updateContactBag): Contact;
public function deleteContact(DeleteContactBag $deleteContactBag);
public function deleteContacts();
public function groupsFeature(): ContactsGroupsFeature;
public function fieldsFeature(): ContactsFieldsFeature;
}