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