AbstractMailchimpService.php
5 months ago
MailchimpNotFoundException.php
5 months ago
MailchimpRequestException.php
5 months ago
StarterMailchimpService.php
5 months ago
StarterMailchimpService.php
81 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Infrastructure\Services\Mailchimp; |
| 4 | |
| 5 | use AmeliaBooking\Infrastructure\Common\Container; |
| 6 | |
| 7 | /** |
| 8 | * Class StarterMailchimpService |
| 9 | * |
| 10 | * @package AmeliaBooking\Infrastructure\Services\Mailchimp |
| 11 | */ |
| 12 | class StarterMailchimpService extends AbstractMailchimpService |
| 13 | { |
| 14 | /** |
| 15 | * StarterMailchimpService constructor. |
| 16 | * |
| 17 | * @param Container $container |
| 18 | * |
| 19 | */ |
| 20 | public function __construct(Container $container) |
| 21 | { |
| 22 | $this->container = $container; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Create a URL to obtain user authorization. |
| 27 | * |
| 28 | * @return string |
| 29 | */ |
| 30 | public function createAuthUrl(): string |
| 31 | { |
| 32 | return ''; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Returns the mailing lists |
| 37 | * |
| 38 | * @return array |
| 39 | */ |
| 40 | public function getLists(): array |
| 41 | { |
| 42 | return []; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Get the metadata server name from Mailchimp. |
| 47 | * |
| 48 | * @param string $accessToken |
| 49 | * |
| 50 | * @return string|null |
| 51 | */ |
| 52 | public function getMetadataServerName(string $accessToken) |
| 53 | { |
| 54 | return ''; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Add subscriber to the mailing list or update existing subscriber. |
| 59 | * |
| 60 | * |
| 61 | * @param string $email |
| 62 | * @param array $customer |
| 63 | * @param bool $add |
| 64 | * @return void |
| 65 | */ |
| 66 | public function addOrUpdateSubscriber($email, array $customer, bool $add = true): void |
| 67 | { |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Delete subscriber from the mailing list. |
| 72 | * |
| 73 | * @param string $email |
| 74 | * |
| 75 | * @return void |
| 76 | */ |
| 77 | public function deleteSubscriber($email) |
| 78 | { |
| 79 | } |
| 80 | } |
| 81 |