Completed
Pull Request — master (#220)
by
unknown
01:45 queued 32s
created

Newsletter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Spatie\Newsletter;
4
5
use DrewM\MailChimp\MailChimp;
6
interface Newsletter
7
{
8
    public function subscribe(string $email, array $mergeFields = [], string $listName = '', array $options = []);
9
10
    public function subscribePending(
11
        string $email,
12
        array $mergeFields = [],
13
        string $listName = '',
14
        array $options = []
15
    );
16
17
    public function subscribeOrUpdate(
18
        string $email,
19
        array $mergeFields = [],
20
        string $listName = '',
21
        array $options = []
22
    );
23
24
    public function getMembers(string $listName = '', array $parameters = []);
25
26
    public function getMember(string $email, string $listName = '');
27
28
    public function getMemberActivity(string $email, string $listName = '');
29
30
    public function hasMember(string $email, string $listName = ''): bool;
31
32
    public function isSubscribed(string $email, string $listName = ''): bool;
33
34
    public function unsubscribe(string $email, string $listName = '');
35
36
    public function updateEmailAddress(string $currentEmailAddress, string $newEmailAddress, string $listName = '');
37
38
    public function delete(string $email, string $listName = '');
39
40
    public function deletePermanently(string $email, string $listName = '');
41
42
    public function getTags(string $email, string $listName = '');
43
44
    public function addTags(array $tags, string $email, string $listName = '');
45
46
    public function removeTags(array $tags, string $email, string $listName = '');
47
48
    public function createCampaign(
49
        string $fromName,
50
        string $replyTo,
51
        string $subject,
52
        string $html = '',
53
        string $listName = '',
54
        array $options = [],
55
        array $contentOptions = []
56
    );
57
58
    public function updateContent(string $campaignId, string $html, array $options = []);
59
60
    /**
61
     * @return array|false
62
     */
63
    public function getLastError();
64
65
    public function lastActionSucceeded(): bool;
66
}
67